BinaryReader.fromFile constructor

BinaryReader.fromFile(
  1. String url
)

Implementation

factory BinaryReader.fromFile(String url) {
  File file = File(url);
  file.openRead();
  Uint8List bytes = file.readAsBytesSync();
  return BinaryReader(bytes:bytes);
}