hasSelection property

bool get hasSelection

Whether there is currently an active selection with both anchor and focus.

Implementation

bool get hasSelection => _anchor != null && _focus != null;