# operator == method

1. @override

bool operator ==(

1. Object other

)
override

Returns true if this byte array equals the specified object.

## Implementation

    @override
    bool operator ==(Object other) {
      if (identical(this, other)) return true;
      if (other is! ByteArray) return false;
      if (_bytes.length != other._bytes.length) return false;

      for (int i = 0; i < _bytes.length; i++) {
        if (_bytes[i] != other._bytes[i]) return false;
      }
      return true;
    }