open static method

Future<FileByteSource> open(
  1. File file
)

Opens file for reading.

Implementation

static Future<FileByteSource> open(File file) async {
  final raf = await file.open();
  return FileByteSource._(raf, await raf.length());
}