UniversalCollections enum

Defines collections wrapping type

Inheritance
Available extensions

Values

list → const UniversalCollections

List collection: List

listNullableItem → const UniversalCollections

List collection with nullable items: List<T?>

nullableList → const UniversalCollections

Nullable List collection: List

nullableListNullableItem → const UniversalCollections

Nullable List collection with nullable items: List<T?>?

map → const UniversalCollections

Map collection: Map<String, T>

mapNullableValue → const UniversalCollections

Map collection with nullable values: Map<String, T?>

nullableMap → const UniversalCollections

Nullable Map collection: Map<String, T>?

nullableMapNullableValue → const UniversalCollections

Nullable Map collection with nullable values: Map<String, T?>?

Properties

collectionPrefix String
Returns String representation of collection prefix, e.g., "List<" or "Map<String, ".
no setter
collectionSuffixQuestionMark String
Returns question mark for the collection itself if it's nullable, otherwise empty string. E.g., for List
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
itemIsNullable bool
Indicates if the items (for lists) or values (for maps) within the collection are nullable. E.g., for List<T?>, this returns true.
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<UniversalCollections>
A constant List of the values in this enum, in order of their declaration.