immutableCollectionEquality property

CompareBy? immutableCollectionEquality
  1. If null (the default), view-models which are immutable collections will be compared by their default equality.

  2. If CompareBy.byDeepEquals, view-models which are immutable collections will be compared by their items, one by one (potentially slow comparison).

  3. If CompareBy.byIdentity, view-models which are immutable collections will be compared by their internals being identical (very fast comparison).

Note: This works with immutable collections IList, ISet, IMap and IMapOfSets from the https://pub.dev/packages/fast_immutable_collections package.

Implementation

CompareBy? get immutableCollectionEquality => _immutableCollectionEquality;