onSelectionChanged property

dynamic Function(SelectionModel)? onSelectionChanged
final

onSelectionChanged method returns SelectionModel, which has index and length of the selected text

Implementation

final Function(SelectionModel)? onSelectionChanged;