fromFileAsync static method

Future<BytesFileIO> fromFileAsync(
  1. File file, {
  2. int? length,
  3. bool append = true,
})

Implementation

static Future<BytesFileIO> fromFileAsync(
  File file, {
  int? length,
  bool append = true,
}) async {
  var io = await file.open(mode: append ? FileMode.append : FileMode.write);
  return BytesFileIO(io, length: length);
}