operator == method
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);