MapExtensions<K, V> extension
- on
-
- Map<
K, V>
- Map<
Properties
- isJsonEncodable → bool
-
Available on Map<
If this object is Json encodable,K, V> , provided by the MapExtensions extensiontrueis returned.no setter
Methods
-
addAllIfEmpty(
Map< K, V> ? others) → void -
Available on Map<
AddK, V> , provided by the MapExtensions extensionothersto Map. -
addWith(
Map< K, V> others, Iterable<K> keys) → Map<K, V> -
Available on Map<
Set only the value of the key specified byK, V> , provided by the MapExtensions extensionkeysin the map specified byothers. -
containsKeyAll(
Iterable< Object?> keys) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrueif allkeysare included in the keys of Map. -
containsKeyAny(
Iterable< Object?> keys) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrueif any of the keys in Map contain any of the keys inkeys. -
containsValueAll(
Iterable< Object?> values) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrueif the value of Map contains allvalues. -
containsValueAny(
Iterable< Object?> values) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrueif the value of Map contains one ofvalues. -
equalsTo(
Map< K, V> others) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrueif the internals of Map andothersare compared and match. -
get<
T> (K key, T orElse) → T -
Available on Map<
Retrieves the elementK, V> , provided by the MapExtensions extensionkeyfrom Map. -
getAsDateTime(
K key, [DateTime? orElse]) → DateTime -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkeyof type Map from Map. -
getAsDouble(
K key, [double orElse = 0.0]) → double -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkeyof type double from Map. -
getAsInt(
K key, [int orElse = 0]) → int -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkeyof type int from Map. -
getAsList<
T> (K key, [List< T> ? orElse]) → List<T> -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkeyof type List from Map. -
getAsMap<
T> (K key, [Map< String, T> ? orElse]) → Map<String, T> -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkeyof type Map from Map. -
getAsSet<
T> (K key, [Set< T> ? orElse]) → Set<T> -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkeyof type Set from Map. -
merge(
Map< K, V> ? others, {K convertKeys(K key)?, V convertValues(V value)?}) → Map<K, V> -
Available on Map<
Merges elements ofK, V> , provided by the MapExtensions extensionothersinto Map. -
toList<
T> (T callback(K key, V value)) → Iterable< T> -
Available on Map<
Returns a list ofK, V> , provided by the MapExtensions extensioncallbackreturn values generated from Map. -
where(
bool test(K key, V value)) → Map< K, V> -
Available on Map<
Extracts only elements for which the return value of the callback given byK, V> , provided by the MapExtensions extensiontestistrue.