nullOnEmpty property

Map<K, V>? get nullOnEmpty

Implementation

Map<K, V>? get nullOnEmpty => isEmpty ? null : this;