get method

Future<Uint8List> get(
  1. PathUri path
)

Retrieves the content of the file at path.

See:

Implementation

Future<Uint8List> get(PathUri path) async {
  final buffer = BytesBuilder(copy: false);

  final stream = await getStream(path);
  await stream.forEach(buffer.add);

  return buffer.toBytes();
}