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 extensiontrue
is returned.no setter
Methods
-
addAllIfEmpty(
Map< K, V> ? others) → void -
Available on Map<
AddK, V> , provided by the MapExtensions extensionothers
to 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 extensionkeys
in the map specified byothers
. -
containsKeyAll(
Iterable< Object?> keys) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrue
if allkeys
are included in the keys of Map. -
containsKeyAny(
Iterable< Object?> keys) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrue
if 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 extensiontrue
if the value of Map contains allvalues
. -
containsValueAny(
Iterable< Object?> values) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrue
if the value of Map contains one ofvalues
. -
equalsTo(
Map< K, V> others) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtensions extensiontrue
if the internals of Map andothers
are compared and match. -
get<
T> (K key, T orElse) → T -
Available on Map<
Retrieves the elementK, V> , provided by the MapExtensions extensionkey
from Map. -
getAsDateTime(
K key, [DateTime? orElse]) → DateTime -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkey
of type Map from Map. -
getAsDouble(
K key, [double orElse = 0.0]) → double -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkey
of type double from Map. -
getAsInt(
K key, [int orElse = 0]) → int -
Available on Map<
Retrieves the element ofK, V> , provided by the MapExtensions extensionkey
of 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 extensionkey
of 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 extensionkey
of 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 extensionkey
of 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 extensionothers
into Map. -
toList<
T> (T callback(K key, V value)) → Iterable< T> -
Available on Map<
Returns a list ofK, V> , provided by the MapExtensions extensioncallback
return 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 extensiontest
istrue
.