getBytes method

  1. @override
Future<Uint8List> getBytes(
  1. BuildContext context
)
override

Retrieves the bytes of the PDF document from the file.

Implementation

@override
Future<Uint8List> getBytes(BuildContext context) async {
  _documentBytes ??= await _file.readAsBytes();
  return Future<Uint8List>.value(_documentBytes);
}