nullIfEmpty method
Returns this map, or null if it is empty.
Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
Map<K, V>? nullIfEmpty() => isEmpty ? null : this;
Returns this map, or null if it is empty.
Audited: 2026-06-12 11:26 EDT
@useResult
Map<K, V>? nullIfEmpty() => isEmpty ? null : this;