operator == method

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

Checks if this offset is equal to another object.

Returns true if the other object is an IntOffset with the same coordinates.

Implementation

@override
bool operator ==(Object other) =>
    other is IntOffset && x == other.x && y == other.y;