orEmpty property

Map<K, V> orEmpty

Creates empty Map if this nullable Map is null, otherwise returns this Map.

Implementation

Map<K, V> get orEmpty => this ?? {};