operator == method

bool operator == (
  1. Object other
)
override

Whether other is a point with the same coordinates as this point.

Returns true if other is a Point with x and y coordinates equal to the corresponding coordiantes of this point, and false otherwise.

Implementation

bool operator ==(Object other) =>
    other is Point && x == other.x && y == other.y;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-math/Point/operator_equals.html