hasSelection property

bool get hasSelection

Whether a selection is currently active.

Implementation

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