get method

Future<Uint8List> get(
  1. PathUri path
)

Gets the content of the file at path.

Implementation

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

  await getStream(path).forEach(buffer.add);

  return buffer.toBytes();
}