read method

  1. @override
Future<String?> read(
  1. String key
)
override

Returns the cached response for key, or null on a miss.

Implementation

@override
Future<String?> read(String key) async {
  final file = _fileFor(key);
  if (!await file.exists()) return null;
  return file.readAsString();
}