fromFile static method

Future<FileStream> fromFile(
  1. File file
)

Implementation

static Future<FileStream> fromFile(File file) async {
  RandomAccessFile raFile = await file.open();
  int length = await raFile.length();
  return FileStream._(raFile, length);
}