Collection<K, V> extension
- on
-
- Map<
K, V>
- Map<
Properties
-
clone
→ Map<
K, V> -
Available on Map<
K, V> , provided by the Collection extensionno setter
Methods
-
find<
T extends V> (bool callback(V element)) → T? -
Available on Map<
Returns the first element satisfying test, or null if there are none.K, V> , provided by the Collection extension -
findOrFail<
T extends V> (bool callback(V element), {String? message}) → T -
Available on Map<
Returns the first element satisfying test, or throw if there are none.K, V> , provided by the Collection extension -
get<
T extends V?> (K? key) → T? -
Available on Map<
Returns the value associated from theK, V> , provided by the Collection extensionK
parameter -
getOr<
T extends V?> (K? key, {T? defaultValue}) → T? -
Available on Map<
Returns the value associated from theK, V> , provided by the Collection extensionK
parameter or defined value -
getOrFail<
T extends V> (K? key, {String? message}) → T -
Available on Map<
Returns the value associated from theK, V> , provided by the Collection extensionK
parameter -
overrideIfPresent(
K key, V ifPresent()) → V? -
Available on Map<
Replaces the value associated with a key if it existsK, V> , provided by the Collection extension -
set(
K key, V value) → void -
Available on Map<
Inserts or replaces data in the collectionK, V> , provided by the Collection extension -
where<
T extends V> (bool callback(V element)) → Map< K, T> -
Available on Map<
K, V> , provided by the Collection extension