selectAnnotationRange property

bool selectAnnotationRange
final

Whether to programmatically select annotation ranges when clicked.

When true, clicking on an annotation (highlight/underline) will automatically select the text range, triggering the selection event with the correct rect. This is useful for displaying custom selection UI for annotations.

When false (default), annotation clicks will only trigger onAnnotationClicked without programmatically selecting the text.

Implementation

final bool selectAnnotationRange;