MapExtension<K, V> extension

Map

on

Properties

capitalizeKeysFirstCharacter Map<String, V>
Return value or null from Map Capitalize all keys First Character in the map. Returns a new map with capitalized keys.
no setter
isNullOrEmpty bool
Returns true if this nullable iterable is either null or empty.
no setter

Methods

addIfNotNull(K key, V value) Map<K, V>?
Add item into map if value isn't null Add item into map if key not exist
filter(bool predicate(K key, V value)) Map<K, V>
Returns a new map with all entries that satisfy the given predicate. The entries in the resulting map preserve the order of the original map.
updateAndJoin(Map<K, V>? map) Map<K, V>
Returns a new map with two map join if key already exist then passing map value override