isEmptyMap function

bool isEmptyMap(
  1. Map map
)

Returns true if there is no key/value pair in the map.

Implementation

bool isEmptyMap(Map map) {
  return map == null || map.isEmpty;
}