NullableMapExtensions<K, V> extension

Provides an extension method for Map that is nullable.

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

on

Properties

isEmpty bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Whether there is no key/value pair in the map.
no setter
isNotEmpty bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Whether there is at least one key/value pair in the map.
no setter
length int

Available on Map<K, V>?, provided by the NullableMapExtensions extension

The number of key/value pairs in the map.
no setter

Methods

containsKey(Object? key) bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Whether this map contains the given key.
containsKeyAll(Iterable<Object?> keys) bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Returns true if all keys are included in the keys of Map.
containsKeyAny(Iterable<Object?> keys) bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Returns true if any of the keys in Map contain any of the keys in keys.
containsValue(Object? value) bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Whether this map contains the given value.
containsValueAll(Iterable<Object?> values) bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Returns true if the value of Map contains all values.
containsValueAny(Iterable<Object?> values) bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Returns true if the value of Map contains one of values.
equalsTo(Map<K, V>? others) bool

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Returns true if the internals of Map and others are compared and match.
get<T>(K key, T orElse) → T

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Retrieves the element key from Map.
getAsDateTime(K key, [DateTime? orElse]) DateTime

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Retrieves the element of key of type Map from Map.
getAsDouble(K key, [double orElse = 0.0]) double

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Retrieves the element of key of type double from Map.
getAsInt(K key, [int orElse = 0]) int

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Retrieves the element of key of type int from Map.
getAsList<T>(K key, [List<T>? orElse]) List<T>

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Retrieves the element of key of type List from Map.
getAsMap<T>(K key, [Map<String, T>? orElse]) Map<String, T>

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Retrieves the element of key of type Map from Map.
getAsSet<T>(K key, [Set<T>? orElse]) Set<T>

Available on Map<K, V>?, provided by the NullableMapExtensions extension

Retrieves the element of key of type Set from Map.