hasSelection property

bool get hasSelection

Whether a range of text is currently selected.

Implementation

bool get hasSelection => _selectionStart != null && _selectionEnd != null;