isEmptyMap static method

bool isEmptyMap(
  1. Map? map
)

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

Implementation

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