operator == method

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

Check if two vectors are the same.

Implementation

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