readValue method

Object? readValue(
  1. dynamic source,
  2. dynamic key
)

Reads a value from the source, returning it if the source is a map, or null otherwise.

Implementation

Object? readValue(source, key) {
  return isMap(source) ? source[key] : null;
}