isCollapsed property

bool get isCollapsed

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

Implementation

bool get isCollapsed => start == end;