operator == method

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

Implements the operator == (equality).

  • this: The left hand side of the operator.
  • other: The right hand side of the operator.

Returns: true if values are equal to each other, otherwise false.

Implementation

@override
bool operator ==(Object other) => other is Offset && equals(other);