get<T> method

T get<T>(
  1. String key,
  2. T defVal
)

Implementation

T get<T>(String key, T defVal) {
  return this[key] ?? defVal;
}