get<T> method

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

Implementation

T? get<T>(TypedKey<T> key) {
  final calc = _cache[key] as T Function()?;
  if (calc == null) {
    return null;
  }
  return calc();
}