fileContent property

Uint8List get fileContent

File content from href in bytes, represented as Uint8List.

Throws an AssertionError if the file could not be found.

Implementation

Uint8List get fileContent {
  final file = _source.findFile('OEBPS/$href');
  if (file == null) {
    throw AssertionError('File in href OEBPS/$href does not exists');
  }

  return file.content;
}