bool isEmpty

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

Source

bool get isEmpty => _key(0) == null;