A range of characters in a string of text.
Constants
Constructors
- TextRange({int start, int end })
-
Creates a text range.
const - TextRange.collapsed(int offset)
-
A text range that starts and ends at offset.
const
Properties
- end → int
-
The next index after the characters in this range.
read-only - hashCode → int
-
read-only
- isCollapsed → bool
-
Whether this range is empty (but still potentially placed inside the text).
read-only - isNormalized → bool
-
Whether the start of this range precedes the end.
read-only - isValid → bool
-
Whether this range represents a valid position in the text.
read-only - start → int
-
The index of the first character in the range.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
textAfter(
String text) → String -
The text after this range.
-
textBefore(
String text) → String -
The text before this range.
-
textInside(
String text) → String -
The text inside this range.
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited