operator == method

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

Deep equality.

A BuiltListMultimap is only equal to another BuiltListMultimap with equal key/values pairs in any order.

Implementation

@override
bool operator ==(Object other) {
  if (identical(other, this)) return true;
  if (other is! BuiltListMultimap) return false;
  if (other.length != length) return false;
  if (other.hashCode != hashCode) return false;
  for (var key in keys) {
    if (other[key] != this[key]) return false;
  }
  return true;
}