get method

V get(
  1. K key
)

Returns the value key.

Implementation

V get(K key) {
  final value = this[key];
  return value is V ? value : throw KeyError(key, this);
}