TextHighlight class
Configuration for highlighting a range of text within a RenderParagraph.
Constructors
- TextHighlight({required int start, required int end, Color? foregroundColor, Color? backgroundColor})
-
Defines an ordered half-open UTF-16 source span with optional color overrides.
const
Properties
- backgroundColor → Color?
-
Optional background override for text intersecting the source span.
final
- end → int
-
Exclusive UTF-16 code-unit offset in the source string, not a cell offset.
final
- foregroundColor → Color?
-
Optional foreground override for text intersecting the source span.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → int
-
Inclusive UTF-16 code-unit offset in the source string, not a cell offset.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited