operator == method

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

Compares two Offsets for equality.

Implementation

@override
bool operator ==(dynamic other) {
  if (other is! Offset)
    return false;
  final Offset typedOther = other;
  return _dx == typedOther._dx &&
         _dy == typedOther._dy;
}