fileRead method

  1. @override
Future<Uint8List> fileRead(
  1. int handle, {
  2. int maxBytes = privilegeFileDefaultReadChunkBytes,
})
override

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);