ConfigList class

  • If isDeepEquals is false, the IList equals operator (==) compares by identity.
  • If isDeepEquals is true (the default), the IList equals operator (==) compares all items, ordered.
  • If cacheHashCode is true (the default), the IList will only calculate the hashCode once, when it is asked — initially, internally null. Otherwise, it will always recalculate it.
Annotations
  • @immutable

Constructors

ConfigList({bool isDeepEquals = true, 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 list 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

Methods

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