PdfDocumentRefCustom constructor

const PdfDocumentRefCustom({
  1. required int fileSize,
  2. required FutureOr<int> read(
    1. Uint8List buffer,
    2. int position,
    3. int size
    ),
  3. required String sourceName,
  4. PdfPasswordProvider? passwordProvider,
  5. bool firstAttemptByEmptyPassword = true,
  6. bool autoDispose = true,
  7. int? maxSizeToCacheOnMemory,
  8. void onDispose()?,
})

Implementation

const PdfDocumentRefCustom({
  required this.fileSize,
  required this.read,
  required this.sourceName,
  this.passwordProvider,
  this.firstAttemptByEmptyPassword = true,
  super.autoDispose = true,
  this.maxSizeToCacheOnMemory,
  this.onDispose,
});