isDefined method

bool isDefined(
  1. String key
)

True if key has a nonempty value in the underlying map.

Differs from Map.containsKey by excluding empty values.

Implementation

bool isDefined(String key) => _map[key]?.isNotEmpty ?? false;