TextSelection class final
A directional selection. baseOffset is the anchor, extentOffset is the moving edge/caret.
Constructors
- TextSelection({required int baseOffset, required int extentOffset})
-
const
- TextSelection.collapsed({required int offset})
-
const
Properties
- baseOffset → int
-
final
- end → int
-
no setter
- extentOffset → int
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isCollapsed → bool
-
no setter
- range → TextRange
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → int
-
no setter
Methods
-
copyWith(
{int? baseOffset, int? extentOffset}) → TextSelection -
normalizeForText(
String text) → TextSelection -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override