ReadiumReaderWidget constructor

const ReadiumReaderWidget({
  1. required Publication publication,
  2. Widget loadingWidget = const Center(child: CircularProgressIndicator()),
  3. Locator? initialLocator,
  4. ValueNotifier<bool>? shouldShowControls,
  5. dynamic onExternalLinkActivated(
    1. String
    )?,
  6. String goBackwardSemanticLabel = 'Go Backward',
  7. String goForwardSemanticLabel = 'Go Forward',
  8. String toggleShowControlsSemanticLabel = 'Toggle show controls',
  9. bool verticalScroll = false,
  10. void onTextSelected(
    1. TextSelectionEvent
    )?,
  11. void onSelectionAction(
    1. SelectionActionEvent
    )?,
  12. void onDecorationInteraction(
    1. DecorationInteractionEvent
    )?,
  13. List<SelectionAction>? selectionActions,
  14. Set<DefaultSelectionAction>? allowedDefaultActions,
  15. Key? key,
})

Implementation

const ReadiumReaderWidget({
  required this.publication,
  this.loadingWidget = const Center(child: CircularProgressIndicator()),
  this.initialLocator,
  this.shouldShowControls,
  this.onExternalLinkActivated,
  this.goBackwardSemanticLabel = 'Go Backward',
  this.goForwardSemanticLabel = 'Go Forward',
  this.toggleShowControlsSemanticLabel = 'Toggle show controls',
  this.verticalScroll = false,
  this.onTextSelected,
  this.onSelectionAction,
  this.onDecorationInteraction,
  this.selectionActions,
  this.allowedDefaultActions,
  super.key,
});