value method

  1. @override
Future<Map<String, dynamic>?> value(
  1. String key
)
override

Retrieves the data located at key or null if a cache miss occurs.

Implementation

@override
Future<Map<String, dynamic>?> value(String key) async {
  final strJson = _storage.getItem(key);
  return strJson == null
      ? null
      : json.decode(strJson) as Map<String, dynamic>;
}