fromFile static method
Implementation
static Future<PackFile> fromFile(IdxFile idxFile, String filePath) async {
var file = await File(filePath).open(mode: FileMode.read);
var bytes = await file.read(_headerSize);
await file.close();
return PackFile.decode(idxFile, filePath, bytes);
}