value method

V? value(
  1. K key
)

Implementation

V? value(K key) {
  if (this == null) return null;
  if (this!.containsKey(key)) {
    return this![key];
  } else {
    return null;
  }
}