Метод ==
bool operator ==(Точка равна только другой точке с теми же координатами.
Эта точка равна другой точке, если и только если другая точка является точкой с x равным x и y равным y.
Исходный код
bool operator ==(other) {
if (other is! Point) return false;
return x == other.x && y == other.y;
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-math/Point/operator_equals.html