MapExtensions<K, V> extension
- on
-
- Map<
K, V>
- Map<
Methods
-
add(
K key, V item) → void -
Available on Map<
Add itemK, V> , provided by the MapExtensions extension -
asJson(
{String delimiter = '_'}) → Map< String, dynamic> -
Available on Map<
Converts a Map to JSON with formatted keys (K, V> , provided by the MapExtensions extension_
,-
, orcamelCase
). -
computeIfAbsent(
K key, V ifAbsent(K key)) → V -
Available on Map<
Computes a value for the given key if it is not already present in the map.K, V> , provided by the MapExtensions extension -
get(
K key) → V? -
Available on Map<
Get value by keyK, V> , provided by the MapExtensions extension -
mapKeys<
K2> (K2 convert(K key)) → Map< K2, V> -
Available on Map<
Applies a transformation function to the keys of the Map.K, V> , provided by the MapExtensions extension -
merge(
Map< K, V> other) → Map<K, V> -
Available on Map<
Merges another Map into the current Map, overriding duplicate keys.K, V> , provided by the MapExtensions extension -
put(
K key, V value) → void -
Available on Map<
Add itemK, V> , provided by the MapExtensions extension
Static Methods
-
formatKeys(
String key, String delimiter) → String -
Available on Map<
Formats map keys (snake_case, kebab-case, camelCase)K, V> , provided by the MapExtensions extension