ImmutableCollection<C> class abstract

Implemented types
Implementers

Constructors

ImmutableCollection()
const

Properties

flush → C
Flushes this collection, if necessary. Chainable method. If collection list is already flushed, don't do anything.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setterinherited
isFlushed bool
Whether this collection is already flushed or not.
no setter
isNotEmpty bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

equalItems(Iterable other) bool
Will return true only if the collection items are equal to the iterable items. If the collection is ordered, it will also check if the items are in the same order. This may be slow for very large collection, since it compares each item, one by one. If you try to compare ordered and unordered collections, it will throw a StateError.
equalItemsAndConfig(C other) bool
Will return true only if the collections items are equal, and the collection configurations are equal. If the collection is ordered, it will also check if the items are in the same order. This may be slow for very large collections, since it compares each item, one by one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
same(C other) bool
Will return true only if the collections internals are the same instances (comparing by identity). This will be fast even for very large collections, since it doesn't compare each item.
toString([bool? prettyPrint]) String
A string representation of this object.
override

Operators

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

Static Properties

autoFlush bool
Global configuration that specifies if the collections should flush automatically. The default is true.
getter/setter pair
disallowUnsafeConstructors bool
Global configuration that specifies if unsafe constructors can be used or not. The default is false.
getter/setter pair
isConfigLocked bool
no setter
prettyPrint bool
Global configuration that specifies if the collections should print with "pretty print".
getter/setter pair

Static Methods

lockConfig() → void
In your app initialization, call lockConfig if you want to lock the configuration, so that no one can change it anymore.
resetAllConfigurations() → void