operator == method

  1. @override
bool operator == (dynamic 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 ==(dynamic other) {
  return other is OffsetBase
      && other._dx == _dx
      && other._dy == _dy;
}