NullableMapExtension<K, V> extension

Null-safe convenience methods for nullable maps.

on

Properties

isEmpty → bool

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

Returns true if this map is null or empty.
no setter
isNotEmpty → bool

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

Returns true if this map has at least one entry.
no setter
orEmpty → Map<K, V>

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

Returns this map, or an empty map when it is null.
no setter