getOr method

TV getOr(
  1. TK key,
  2. TV defaultValue
)

Implementation

TV getOr(TK key, TV defaultValue) =>
    !containsKey(key) ? defaultValue : this[key]!;