read method

Future<Uint8List> read(
  1. String path
)

Reads the bytes of path under the served root.

Implementation

Future<Uint8List> read(String path) async {
  final reply = await _call(DriveOp.read, fields: {'path': path});
  return Uint8List.fromList(
    DriveCompression.decodePayload(reply.header, reply.payload),
  );
}