onItemPressed property

(dynamic Function(String highlightedText, int startIndex, int endIndex)?) onItemPressed
final

This gives access the highlighted text, the start index and the end index of the highlighted text

Implementation

final Function(String highlightedText, int startIndex, int endIndex)? onItemPressed;