ReadiumReaderWidget constructor

const ReadiumReaderWidget({
  1. required Publication publication,
  2. Widget? loadingWidget,
  3. Locator? initialLocator,
  4. ValueNotifier<bool>? shouldShowControls,
  5. dynamic onExternalLinkActivated(
    1. String
    )?,
  6. ValueChanged<TextSelectionEvent>? onTextSelected,
  7. ValueChanged<SelectionActionEvent>? onSelectionAction,
  8. ValueChanged<DecorationInteractionEvent>? onDecorationInteraction,
  9. ValueChanged<ImageTapEvent>? onImageTapped,
  10. List<SelectionAction> selectionActions = const [],
  11. Set<DefaultSelectionAction>? allowedDefaultActions,
  12. String goBackwardSemanticLabel = 'Go Backward',
  13. String goForwardSemanticLabel = 'Go Forward',
  14. String toggleShowControlsSemanticLabel = 'Toggle show controls',
  15. int preloadPreviousPositionCount = 2,
  16. int preloadNextPositionCount = 6,
  17. Key? key,
})

Implementation

const ReadiumReaderWidget({
  required this.publication,
  this.loadingWidget,
  this.initialLocator,
  this.shouldShowControls,
  this.onExternalLinkActivated,
  this.onTextSelected,
  this.onSelectionAction,
  this.onDecorationInteraction,
  this.onImageTapped,
  this.selectionActions = const [],
  this.allowedDefaultActions,
  this.goBackwardSemanticLabel = 'Go Backward',
  this.goForwardSemanticLabel = 'Go Forward',
  this.toggleShowControlsSemanticLabel = 'Toggle show controls',
  this.preloadPreviousPositionCount = 2,
  this.preloadNextPositionCount = 6,
  super.key,
});