Represents a text selection in an editor.
Constructor
Variables
active:Position
The position of the cursor. This position might be before or after {@link Selection.anchor anchor}.
anchor:Position
The position at which the selection starts. This position might be before or after {@link Selection.active active}.
isReversed:Bool
A selection is reversed if its {@link Selection.anchor anchor} is the {@link Selection.end end} position.