SingleFieldMap class final
An unmodifiable map with one entry: the data of a value validated on its
own (list items, or and aliases), cheaper than a map literal.
Constructors
- SingleFieldMap(String _key, Object? _value)
Properties
-
entries
→ Iterable<
MapEntry< Object?, Object?> > -
The map entries of this Map.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether there is no key/value pair in the map.
no setteroverride
- isNotEmpty → bool
-
Whether there is at least one key/value pair in the map.
no setteroverride
-
keys
→ Iterable<
Object?> -
The keys of this Map.
no setteroverride
- length → int
-
The number of key/value pairs in the map.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Iterable<
Object?> -
The values of this Map.
no setterinherited
Methods
-
addAll(
Map< Object?, Object?> other) → void -
This operation is not supported by an unmodifiable map.
inherited
-
addEntries(
Iterable< MapEntry< entries) → voidObject?, Object?> > -
This operation is not supported by an unmodifiable map.
inherited
-
cast<
RK, RV> () → Map< RK, RV> -
Provides a view of this map as having
RKkeys andRVinstances, if necessary.inherited -
clear(
) → void -
This operation is not supported by an unmodifiable map.
inherited
-
containsKey(
Object? key) → bool -
Whether this map contains the given
key.override -
containsValue(
Object? value) → bool -
Whether this map contains the given
value.inherited -
forEach(
void action(Object? key, Object? value)) → void -
Applies
actionto each key/value pair of the map.inherited -
map<
K2, V2> (MapEntry< K2, V2> transform(Object? key, Object? value)) → Map<K2, V2> -
Returns a new map where all entries of this map are transformed by
the given
convertfunction.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putIfAbsent(
Object? key, Object? ifAbsent()) → Object? -
This operation is not supported by an unmodifiable map.
inherited
-
remove(
Object? key) → Object? -
This operation is not supported by an unmodifiable map.
inherited
-
removeWhere(
bool test(Object? key, Object? value)) → void -
This operation is not supported by an unmodifiable map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Object? key, Object? update(Object? value), {Object? ifAbsent()?}) → Object? -
This operation is not supported by an unmodifiable map.
inherited
-
updateAll(
Object? update(Object? key, Object? value)) → void -
This operation is not supported by an unmodifiable map.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
Object? key) → Object? -
The value for the given
key, ornullifkeyis not in the map.override -
operator []=(
Object? key, Object? value) → void -
This operation is not supported by an unmodifiable map.
inherited