operator == method
- Object other
override
Equality operator. Compares an Offset or Size to another Offset or Size, and returns true if the horizontal and vertical values of the left-hand-side operand are equal to the horizontal and vertical values of the right-hand-side operand respectively. Returns false otherwise.
Implementation
@override
bool operator ==(Object other) {
return other is OffsetBase
&& other._dx == _dx
&& other._dy == _dy;
}