ConfigMap class

  • If isDeepEquals is false, the IMap equals operator (==) compares by identity.
  • If isDeepEquals is true (the default), the IMap equals operator (==) compares all entries, ordered.
  • If sort is true, will sort the list output of keys. Otherwise, it will keep the insertion order (the default).
  • If cacheHashCode is true (the default), the IMap will only calculate the hashCode once, when it is asked — initially, internally null. Otherwise, it will always recalculate it.
Annotations
  • @immutable

Constructors

ConfigMap({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 map 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 the insertion order. If true (the default), will sort the list output of keys.
final

Methods

copyWith({bool? isDeepEquals, bool? sort, bool? cacheHashCode}) ConfigMap
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