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. ValueChanged<TextSelectionEvent>? onTextSelected,
  7. ValueChanged<SelectionActionEvent>? onSelectionAction,
  8. ValueChanged<DecorationInteractionEvent>? onDecorationInteraction,
  9. List<SelectionAction> selectionActions = const [],
  10. Set<DefaultSelectionAction>? allowedDefaultActions,
  11. String goBackwardSemanticLabel = 'Go Backward',
  12. String goForwardSemanticLabel = 'Go Forward',
  13. String toggleShowControlsSemanticLabel = 'Toggle show controls',
  14. bool verticalScroll = false,
  15. Key? key,
})

Implementation

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