notEmptyOrNull property

Map<K, V>? get notEmptyOrNull

Returns self, if it's not empty, null otherwise.

Implementation

Map<K, V>? get notEmptyOrNull => isNotEmpty ? this : null;