operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Overrides the equality operator (==) to compare this AffinePointt instance with another object. It returns true if the other object is also an AffinePointt and if the curve, x, and y coordinates match.

Implementation

@override
bool operator ==(Object other) {
  if (other is AffinePointt) {
    return curve == other.curve && x == other.x && y == other.y;
  }
  return other == this;
}