MapWithDefaultOnMapX<K, V> extension
- on
-
- Map<
K, V>
- Map<
Methods
-
filterByExcludedKeys(
List< K> excludedKeys) → Map<K, V> -
Available on Map<
Filters the map's entries based on a list of excluded keys. Returns a new map excluding the key-value pairs where the key is found within theK, V> , provided by the MapWithDefaultOnMapX extensionexcludedKeys
. -
filterByExcludedValues(
List< V> excludedValues) → Map<K, V> -
Available on Map<
Filters the map's entries based on a list of excluded values. Returns a new map excluding the key-value pairs where the value is found within theK, V> , provided by the MapWithDefaultOnMapX extensionexcludedValues
. -
filterByIncludedKeys(
List< K> includedKeys) → Map<K, V> -
Available on Map<
Filters the map's entries based on a list of included keys. Returns a new map containing only the key-value pairs where the key is found within theK, V> , provided by the MapWithDefaultOnMapX extensionincludedKeys
. -
filterByIncludedValues(
List< V> includedValues) → Map<K, V> -
Available on Map<
Filters the map's entries based on a list of included values. Returns a new map containing only the key-value pairs where the value is found within theK, V> , provided by the MapWithDefaultOnMapX extensionincludedValues
. -
mapWithDefault(
dynamic defaultValue) → Map< K, dynamic> -
Available on Map<
Returns a new map with the same keys as this map but with the specifiedK, V> , provided by the MapWithDefaultOnMapX extensiondefaultValue
for all values that are null. IfdefaultValue
is null, it simply returns a copy of the original map.