open static method

Future<UEpubBook> open({
  1. String? path,
  2. String? url,
  3. Uint8List? bytes,
  4. String? asset,
  5. Object? blob,
  6. Map<String, String>? headers,
})

Implementation

static Future<UEpubBook> open({String? path, String? url, Uint8List? bytes, String? asset, Object? blob, Map<String, String>? headers}) async {
  final UCachedByteSource source = await UDocSources.open(path: path, url: url, bytes: bytes, asset: asset, blob: blob, headers: headers);
  final String fingerprint = await UDocSources.fingerprint(source);
  final UEpubArchive archive = await UEpubArchive.open(source);
  final UEpubBook book = UEpubBook._(archive, fingerprint);
  await book._load();
  return book;
}