getValue<T> method

T? getValue<T>(
  1. String key
)

Get value from cache

Implementation

T? getValue<T>(String key) {
  final entry = _cacheInstance[key];
  if (entry?.value is T?) {
    return entry?.value;
  }
  return null;
}