TextSelectionHandleType enum Null safety

Which type of selection handle to be displayed.

With mixed-direction text, both handles may be the same type. Examples:

  • LTR text: 'the <quick brown> fox':

    The '<' is drawn with the left type, the '>' with the right

  • RTL text: 'XOF <NWORB KCIUQ> EHT':

    Same as above.

  • mixed text: '<the NWOR<B KCIUQ fox'

    Here 'the QUICK B' is selected, but 'QUICK BROWN' is RTL. Both are drawn with the left type.

See also:

  • TextDirection, which discusses left-to-right and right-to-left text in more detail.


collapsed → const TextSelectionHandleType

The start and end of the selection are co-incident at this point.

const TextSelectionHandleType(2)
left → const TextSelectionHandleType

The selection handle is to the left of the selection end point.

const TextSelectionHandleType(0)

The selection handle is to the right of the selection end point.

const TextSelectionHandleType(1)
values → const List<TextSelectionHandleType>

A constant List of the values in this enum, in order of their declaration.

const List<TextSelectionHandleType>


hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]