TextSearchSession class final
Stateful find-next/previous cursor over a match list.
Constructors
-
TextSearchSession({required TextSearchQuery query, List<
TextSearchMatch> ? matches})
Properties
- current → TextSearchMatch?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
no setter
-
matches
→ List<
TextSearchMatch> -
no setter
- query ↔ TextSearchQuery
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
next(
{bool wrap = true}) → TextSearchMatch? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previous(
{bool wrap = true}) → TextSearchMatch? -
toString(
) → String -
A string representation of this object.
inherited
-
updateMatches(
List< TextSearchMatch> matches) → void - Replaces the match list (e.g. after a document change) and resets.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited