get method

String? get(
  1. String key, [
  2. String? defaultValue
])

Retrieve a value from this map

Implementation

String? get(String key, [String? defaultValue]) {
  if (!containsKey(key)) {
    return defaultValue;
  }

  return this[key];
}