get method Null safety

  1. @override
Future<T?> get(
  1. String key,
  2. {CacheEntryDelegate<T>? delegate}
)

Returns the cache value for the specified key.

  • key: the key
  • delegate: provides the caller a way of changing the CacheEntry before persistence

Implementation

@override
Future<T?> get(String key, {CacheEntryDelegate<T>? delegate});