BuiltMapExt<K, V> extension
- on
-
- BuiltMap<
K, V>
- BuiltMap<
Properties
-
firstOrNull
→ MapEntry<
K, V> ? -
Available on BuiltMap<
Returns the first entry if it exists otherwise null.K, V> , provided by the BuiltMapExt extensionno setter -
lastOrNull
→ MapEntry<
K, V> ? -
Available on BuiltMap<
Returns the last entry if it exists otherwise null.K, V> , provided by the BuiltMapExt extensionno setter
Methods
-
any(
bool test(K key, V value)) → bool -
Available on BuiltMap<
Checks whether any entry of this map satisfiesK, V> , provided by the BuiltMapExt extensiontest
. -
every(
bool test(K key, V value)) → bool -
Available on BuiltMap<
Checks whether every entry of this map satisfiesK, V> , provided by the BuiltMapExt extensiontest
. -
firstWhere(
bool test(K key, V value), {MapEntry< K, V> orElse()?}) → MapEntry<K, V> -
Available on BuiltMap<
Returns the first entry that satisfies the given predicateK, V> , provided by the BuiltMapExt extensiontest
. Iterable.firstWhere -
firstWhereOrNull(
bool test(K key, V value)) → MapEntry< K, V> ? -
Available on BuiltMap<
Returns the first entry that satisfiesK, V> , provided by the BuiltMapExt extensiontest
otherwise null. Iterable.firstWhere -
fold<
T> (T initialValue, T combine(T previousValue, MapEntry< K, V> entry)) → T -
Available on BuiltMap<
Reduces a map to a single value by iteratively combining elements of the map using the provided function.K, V> , provided by the BuiltMapExt extension -
generateIterable<
T> (T generator(K key, V value)) → Iterable< T> -
Available on BuiltMap<
returns a List from entriesK, V> , provided by the BuiltMapExt extension -
get(
K key) → V -
Available on BuiltMap<
Returns the valueK, V> , provided by the BuiltMapExt extensionkey
. -
getOrNull(
K key) → V? -
Available on BuiltMap<
Returns the valueK, V> , provided by the BuiltMapExt extensionkey
or null if it not exist. -
lastWhere(
bool test(K key, V value), {MapEntry< K, V> orElse()?}) → MapEntry<K, V> -
Available on BuiltMap<
Returns the last entry that satisfies the given predicateK, V> , provided by the BuiltMapExt extensiontest
. Iterable.lastWhere -
lastWhereOrNull(
bool test(K key, V value)) → MapEntry< K, V> ? -
Available on BuiltMap<
Returns the last entry that satisfiesK, V> , provided by the BuiltMapExt extensiontest
otherwise null. Iterable.lastWhere -
reduce(
MapEntry< K, V> combine(MapEntry<K, V> value, MapEntry<K, V> entry)) → MapEntry<K, V> -
Available on BuiltMap<
Reduces a map to a single value by iteratively combining entries of the collection using the provided function.K, V> , provided by the BuiltMapExt extension -
singleWhere(
bool test(K key, V value), {MapEntry< K, V> orElse()?}) → MapEntry<K, V> -
Available on BuiltMap<
Returns the single element that satisfiesK, V> , provided by the BuiltMapExt extensiontest
. Iterable.lastWhere -
singleWhereOrNull(
bool test(K key, V value)) → MapEntry< K, V> ? -
Available on BuiltMap<
Returns the single element that satisfiesK, V> , provided by the BuiltMapExt extensiontest
. Iterable.singleWhere -
where(
bool predicate(K key, V value)) → BuiltMap< K, V> -
Available on BuiltMap<
Returns a new map with all entries that satisfy the predicateK, V> , provided by the BuiltMapExt extensiontest
.