PdfViewerTextSelectionChangeCallback typedef

PdfViewerTextSelectionChangeCallback = void Function(PdfTextRanges? selection)

Function to be notified when the text selection is changed.

selection is the selected text ranges. If page selection is cleared on page dispose (it means, the page is scrolled out of the view), selection is null. Otherwise, selection is the selected text ranges. If no selection is made, selection is an empty list.

Implementation

typedef PdfViewerTextSelectionChangeCallback = void Function(
    PdfTextRanges? selection);