TextRange class final

A half-open text range: start is included, end is excluded.

Constructors

TextRange({required int start, required int end})
const
TextRange.collapsed(int offset)
const

Properties

end → int
final
hashCode → int
The hash code for this object.
no setteroverride
isCollapsed → bool
no setter
normalizedEnd → int
no setter
normalizedStart → int
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → int
final

Methods

clamp(int textLength) → TextRange
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

Constants

empty → const TextRange