WordHighlight class
A word Highlighter This takes the word or the index and then based on the constructor used it highlights the word with the specified word style
Constructors
- WordHighlight.byIndex({required int? wordIndex, required TextStyle? wordStyle})
- Highlight options Highlight the word by index
- WordHighlight.byWord({required TextStyle? wordStyle, required String? word, bool ignoreCase = false})
- Highlight the word by word
Properties
- character ↔ String?
-
word itself to be highlighted
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightType → HighlightType
-
Type of highlight
no setter
- ignoreCase ↔ bool
-
word match should be case sensitive or not
If false it strictly checks for the word or character
if true it ignores the case
getter/setter pair
-
range
↔ Map<
int, int> ? -
range of character to be highlighted
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- word ↔ String?
-
Style of the word
getter/setter pair
- wordIndex ↔ int?
-
getter/setter pair
- wordStyle ↔ TextStyle?
-
index of the word
getter/setter pair
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