read method
Reads the raw snapshot stored under id, or null when there is none.
Implementation
@override
Future<String?> read(String id) {
return _serialized(() async {
final file = fileFor(id);
if (!await file.exists()) {
return null;
}
try {
return await file.readAsString();
} on FileSystemException {
return null;
}
});
}