read method

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

Returns the object's bytes, or null if it does not exist.

Implementation

@override
Future<List<int>?> read(String key) async {
  final file = _file(key);
  return file.existsSync() ? file.readAsBytes() : null;
}