TextSelectionHandleType enum

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.

Constants

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>

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited