EpubSource.fromUrl constructor

EpubSource.fromUrl(
  1. String url, {
  2. Map<String, String>? headers,
})

load from a url with optional headers

Implementation

factory EpubSource.fromUrl(String url, {Map<String, String>? headers}) {
  return EpubSource._(epubData: _downloadFile(url, headers: headers));
}