read method
Implementation
Future<Bytes> read(String path, {int? maxSize}) async {
final file = await open(
path,
options: const FileOptions(mode: FileMode.read, create: false),
);
try {
return await file.readAll(maxSize: maxSize);
} finally {
await file.close();
}
}