ifEmpty method

Map<K, V> ifEmpty(
  1. Map<K, V> value
)

Returns this Map if it's not empty, otherwise returns value.

Implementation

Map<K, V> ifEmpty(Map<K, V> value) => isEmpty ? value : this;