operator == method

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

Compares two Offsets for equality.

Implementation

@override
bool operator ==(dynamic other) {
  return other is Offset
      && other.dx == dx
      && other.dy == dy;
}