operator == method Null safety

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

Check if two vectors are the same.

Implementation

@override
bool operator ==(Object? other) =>
    (other is Vector4) &&
    (_v4storage[0] == other._v4storage[0]) &&
    (_v4storage[1] == other._v4storage[1]) &&
    (_v4storage[2] == other._v4storage[2]) &&
    (_v4storage[3] == other._v4storage[3]);