A visual position in a string of text.

Constructors

TextPosition({int offset, TextAffinity affinity: TextAffinity.downstream })

const

Properties

affinity → TextAffinity

If the offset has more than one visual location (e.g., occurs at a line break), which of the two locations is represented by this position.

read-only
offset → int

The index of the character just prior to the position.

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited