FindInteractionController class
Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS
Constructors
- FindInteractionController({void onFindResultReceived(FindInteractionController controller, int activeMatchOrdinal, int numberOfMatches, bool isDoneCounting)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onFindResultReceived → (void Function(FindInteractionController controller, int activeMatchOrdinal, int numberOfMatches, bool isDoneCounting)?)
-
Event fired as find-on-page operations progress.
The listener may be notified multiple times while the operation is underway, and the
numberOfMatches
value should not be considered final unlessisDoneCounting
is true.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearMatches(
) → Future< void> - Clears the highlighting surrounding text matches created by findAll.
- Dismisses the find panel, if present.
-
findAll(
{String? find}) → Future< void> - Finds all instances of find on the page and highlights them. Notifies FindInteractionController.onFindResultReceived listener.
-
findNext(
{bool forward = true}) → Future< void> - Highlights and scrolls to the next match found by findAll. Notifies FindInteractionController.onFindResultReceived listener.
-
getActiveFindSession(
) → Future< FindSession?> - If there's a currently active find session, returns the active find session.
-
getSearchText(
) → Future< String?> - Get the search text used.
-
initMethodChannel(
dynamic id) → void - A Boolean value that indicates when the find panel displays onscreen.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
- Begins a search, displaying the find panel.
-
setSearchText(
String? searchText) → Future< void> - Pre-populate the search text to be used.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateResultCount(
) → Future< void> - Updates the results the interface displays for the active search.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- debugLoggingSettings ↔ DebugLoggingSettings
-
Debug settings.
getter/setter pair