operator == method

  1. @override
bool operator == (
  1. 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;
}