operator == method

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

Deep equality.

A BuiltList is only equal to another BuiltList with equal elements in the same order.

Implementation

@override
bool operator ==(Object other) {
  if (identical(other, this)) return true;
  if (other is! BuiltList) return false;
  if (other.length != length) return false;
  if (other.hashCode != hashCode) return false;
  for (var i = 0; i != length; ++i) {
    if (other[i] != this[i]) return false;
  }
  return true;
}