ContainerType class

Defines behavior for different collection container types

Properties

add Function
Adds an element to the container
final
hashCode int
The hash code for this object.
no setterinherited
init Function
Creates a container
final
remove Function
Removes an element from the container
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create<E, I extends Iterable<E>>({I init<E>([Iterable<E>? iterable])?, bool add<E>(Collective<E> collective, I container, E e)?, bool remove<E>(Collective<E> collective, I container, E e)?, dynamic growable = true, bool identitySet = false}) ContainerType
Creates a ContainerType with custom behavior

Constants

growableFalse → const ContainerType
Standard fixed length List behavior
growableTrue → const ContainerType
Standard growable List behavior
identitySet → const ContainerType
Standard LinkedHashSet behavior that uses identity as equality relation.
iterable → const ContainerType
Standard Iterable behavior
list → const ContainerType
Standard List behavior
queue → const ContainerType
Standard Queue behavior
set → const ContainerType
Standard Set behavior
value → const ContainerType
Standard List behavior for CollectiveValue containers