opt<T> method

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

Implementation

T opt<T>(String key, T defVal) => this[key] ?? defVal;