has method

bool has(
  1. String key
)

Returns true if the reactive map contains key and its value is not null.

Example:

if (settings.has('theme')) { ... }

Implementation

bool has(String key) => value.containsKey(key) && value[key] != null;