getTyped<T> method

T? getTyped<T>(
  1. String key, {
  2. T factory(
    1. dynamic v
    )?,
})
inherited

Returns the property key as a typed object

Implementation

T? getTyped<T>(String key, {T Function(dynamic v)? factory}) {
  return _typedMap.putIfAbsent(
      key, () => _convert(this[key], factory: factory));
}