operator == method

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

Check if two vectors are the same.

Implementation

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(Object other) =>
    other is Vector2 &&
    _v2storage[1] == other._v2storage[1] &&
    _v2storage[0] == other._v2storage[0];