isCollapsed property

bool isCollapsed

Whether this range is empty (but still potentially placed inside the text).

Implementation

bool get isCollapsed => start == end;