NullableMapExtensions<K, V> extension

Provides an extension method for Map that is nullable.

NullableなMap用の拡張メソッドを提供します。

on

Properties

isEmpty bool
Whether there is no key/value pair in the map.
no setter
isNotEmpty bool
Whether there is at least one key/value pair in the map.
no setter
length int
The number of key/value pairs in the map.
no setter

Methods

containsKey(Object? key) bool
Whether this map contains the given key.
containsKeyAll(Iterable<Object?> keys) bool
Returns true if all keys are included in the keys of Map.
containsKeyAny(Iterable<Object?> keys) bool
Returns true if any of the keys in Map contain any of the keys in keys.
containsValue(Object? value) bool
Whether this map contains the given value.
containsValueAll(Iterable<Object?> values) bool
Returns true if the value of Map contains all values.
containsValueAny(Iterable<Object?> values) bool
Returns true if the value of Map contains one of values.
equalsTo(Map<K, V>? others) bool
Returns true if the internals of Map and others are compared and match.
get<T>(K key, T orElse) → T
Retrieves the element key from Map.
getAsDateTime(K key, [DateTime? orElse]) DateTime
Retrieves the element of key of type Map from Map.
getAsDouble(K key, [double orElse = 0.0]) double
Retrieves the element of key of type double from Map.
getAsInt(K key, [int orElse = 0]) int
Retrieves the element of key of type int from Map.
getAsList<T>(K key, [List<T>? orElse]) List<T>
Retrieves the element of key of type List from Map.
getAsMap<T>(K key, [Map<String, T>? orElse]) Map<String, T>
Retrieves the element of key of type Map from Map.
getAsSet<T>(K key, [Set<T>? orElse]) Set<T>
Retrieves the element of key of type Set from Map.