PdfTextSearcher class
Search counters and commands for any engine.
- Inheritance
-
- Object
- ChangeNotifier
- PdfTextSearcher
Constructors
- PdfTextSearcher(PdfViewerController _controller)
-
Listens to
controller. Dispose this before the controller.
Properties
- currentIndex → int?
-
Zero-based index of the selected match, or null before one is selected.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- hasMatches → bool
-
Whether matchCount is greater than zero.
no setter
- isSearching → bool
-
Whether a search is still scanning the document.
no setter
- matchCount → int
-
Matches found so far.
no setter
- query → String
-
Text currently being searched.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → PdfSearchState
-
Latest search snapshot from the attached viewer.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object.
override
-
goToNextMatch(
) → Future< void> - Selects the next match.
-
goToPrevMatch(
) → Future< void> - Selects the previous match.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
startTextSearch(
String query) → void -
Starts a search, or clears it when
queryis empty. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited