read method
Reads the raw draft stored under id.
Returns null when there is no draft for id.
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;
}
});
}