get<T> method

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

Get a value from the cache by key.

Implementation

@override
T? get<T>(String key) {
  if (_cache.containsKey(key)) {
    return _cache[key] as T?;
  }
  return null;
}