A visual position in a string of text.
Constructors
- TextPosition({int offset, TextAffinity affinity: TextAffinity.downstream })
-
Creates an object representing a particular position in a string. [...]
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. [...]
final
- hashCode → int
-
The hash code for this object. [...]
@override, read-only
- offset → int
-
The index of the character that immediately follows the position. [...]
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, 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
Operators
-
operator ==(
other) → bool - The equality operator. [...]