MapExtension<K, V> extension
Extension for Map<K, V>
.
- on
-
- Map<
K, V>
- Map<
Methods
-
copy(
) → Map< K, V> -
Available on Map<
Copies this Map.K, V> , provided by the MapExtension extension -
equalsKeysValues(
Iterable< K> keys, Map<K, V> other) → bool -
Available on Map<
ReturnsK, V> , provided by the MapExtension extensiontrue
ifother
havekeys
of equals value. -
filterKey(
K key, V filter(V val)) → bool -
Available on Map<
FilterK, V> , provided by the MapExtension extensionkey
withfilter
. -
getStringKeyValue(
String key) → V? -
Available on Map<
Returns a value by StringK, V> , provided by the MapExtension extensionkey
, treating all this instance keys as String. -
getUnknownKeys(
Iterable< K> knownKeys) → List<K> -
Available on Map<
Returns all unknown keys, not present atK, V> , provided by the MapExtension extensionknownKeys
. -
getValuesInKeysOrder(
Iterable< K> keys) → List<V> -
Available on Map<
Returns the values forK, V> , provided by the MapExtension extensionkeys
(in the same order). -
getValuesInStringKeysOrder(
Iterable< String> keys) → List<V> -
Available on Map<
Returns the values forK, V> , provided by the MapExtension extensionkeys
(in the same order), using getStringKeyValue. -
keepKeys(
Iterable< K> keys) → void -
Available on Map<
Only keepK, V> , provided by the MapExtension extensionkeys
, removing any key not inkeys
parameter. -
keepKeysAndReturnValus(
Iterable< K> keys) → Map<K, V> -
Available on Map<
Only keepK, V> , provided by the MapExtension extensionkeys
, removing any key not inkeys
parameter, than return a Map with them. -
mergeKeysValues<
M> (Map< K, V> other, M merger(K key, V val1, V val2), {V onAbsentKey(K key, bool other)?}) → Map<K, M> -
Available on Map<
Merge this instance withK, V> , provided by the MapExtension extensionother
, callingmerger
for each key (of both Maps). -
mergeKeysValuesNullable<
M> (Map< K, V> other, M merger(K key, V? val1, V? val2)) → Map<K, M> -
Available on Map<
Same as mergeKeysValues, but allowsK, V> , provided by the MapExtension extensionnull
atmerger
. -
mergeKeysValuesToList(
Map< K, V> other, {V onAbsentKey(K key, bool other)?}) → Map<K, List< V> > -
Available on Map<
Merge this instance withK, V> , provided by the MapExtension extensionother
, merging keys values to a List<V
>. See mergeKeysValues. -
mergeKeysValuesToListNoNulls(
Map< K, V> other) → Map<K, List< V> > -
Available on Map<
Same as mergeKeysValuesToList, but ignoreK, V> , provided by the MapExtension extensionnull
values. See mergeKeysValues. -
mergeKeysValuesToListNullable(
Map< K, V> other) → Map<K, List< V?> > -
Available on Map<
Same as mergeKeysValuesToList, but allowsK, V> , provided by the MapExtension extensionnull
values. See mergeKeysValues. -
printElements(
{dynamic printer(Object? o)?, String prefix = '', String keyDelimiter = ': '}) → void -
Available on Map<
Prints this Map entries toK, V> , provided by the MapExtension extensionprinter
, usingkeyDelimiter
("$key$keyDelimiter$value"
) to map each entry to String. -
removeKeys(
Iterable< K> keys) → void -
Available on Map<
RemoveK, V> , provided by the MapExtension extensionkeys
. -
removeKeysAndReturnValues(
Iterable< K> keys) → Map<K, V> -
Available on Map<
RemovesK, V> , provided by the MapExtension extensionkeys
and return a Map with them. -
renameKeys(
Map< K, K> rename) → void -
Available on Map<
Rename the keys using theK, V> , provided by the MapExtension extensionrename
mapper.