hasValue method

bool hasValue(
  1. dynamic source,
  2. dynamic key
)

Checks if the source contains a non-null value for the given key.

Implementation

bool hasValue(source, key) {
  return isMap(source) && source[key] != null;
}