read static method

FutureResult<Uint8List, IoError> read(
  1. Path path
)

Reads the entire file contents of a file as bytes.

Implementation

static FutureResult<Uint8List, IoError> read(Path path) async {
  return Fs.ioGuard(() async {
    return await File(path.asString()).readAsBytes();
  });
}