open static method

FileByteSource open(
  1. File file
)

Opens file for reading. Call close to release the file handle.

Implementation

static FileByteSource open(File file) {
  final raf = file.openSync();
  return FileByteSource._(raf, raf.lengthSync());
}