BytesFileIO.fromFile constructor

BytesFileIO.fromFile(
  1. File file, {
  2. int? length,
  3. bool append = true,
})

Implementation

factory BytesFileIO.fromFile(File file, {int? length, bool append = true}) {
  var io = file.openSync(mode: append ? FileMode.append : FileMode.write);
  return BytesFileIO(io, length: length);
}