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 Vector3) &&
    (_v3storage[0] == other._v3storage[0]) &&
    (_v3storage[1] == other._v3storage[1]) &&
    (_v3storage[2] == other._v3storage[2]);