ConfigSet class

The set configuration.

  • If isDeepEquals is false, the ISet equals operator (==) compares by identity.
  • If isDeepEquals is true (the default), the ISet equals operator (==) compares all items, unordered.
  • If sort is false (the default) it will keep the insertion order. Otherwise, some outputs that return lists will be sorted with the item's natural ordering.
  • If cacheHashCode is true (the default), the ISet will only calculate the hashCode once, when it is asked — initially, internally null. Otherwise, it will always recalculate it.
Annotations
  • @immutable

Constructors

ConfigSet({bool isDeepEquals = true, bool sort = false, bool cacheHashCode = true})
const

Properties

cacheHashCode bool
If false, the hashCode will be calculated each time it's used. If true (the default), the hashCode will be cached. You should turn the cache off only if may use the immutable set with mutable data.
final
hashCode int
The hash code for this object.
no setteroverride
isDeepEquals bool
If false, the equals operator (==) compares by identity. If true (the default), the equals operator (==) compares all items, ordered.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sort bool
If false (the default), will keep insertion order. If true, will sort the list output of items.
final

Methods

copyWith({bool? isDeepEquals, bool? sort, bool? cacheHashCode}) ConfigSet
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override