immutableCollectionEquality property
CompareBy?
immutableCollectionEquality
-
If
null
(the default), view-models which are immutable collections will be compared by their default equality. -
If
CompareBy.byDeepEquals
, view-models which are immutable collections will be compared by their items, one by one (potentially slow comparison). -
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;