fileRead method
Reads up to maxBytes from handle. An empty list means end of file.
Implementation
@override
Future<Uint8List> fileRead(
int handle, {
int maxBytes = privilegeFileDefaultReadChunkBytes,
}) async =>
await methodChannel.invokeMethod<Uint8List>('fileRead', <String, Object?>{
'handle': handle,
'maxBytes': maxBytes,
}) ??
Uint8List(0);