open static method

Future<FileByteSource> open(
  1. String path
)

Opens path for random-access reading.

Implementation

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