1. override
bool operator ==(other)

Compares two Offsets for equality.

Source

@override
bool operator ==(dynamic other) => other is Offset && super == other;