get<T> method

T? get<T>(
  1. String key
)

Get map value by key as specific type.

Implementation

T? get<T>(String key) {
  if (!this.containsKey(key)) {
    return null;
  }

  return this[key];
}