FindInteractionController constructor

FindInteractionController({
  1. void onFindResultReceived(
    1. PlatformFindInteractionController controller,
    2. int activeMatchOrdinal,
    3. int numberOfMatches,
    4. bool isDoneCounting,
    )?,
})

This class represents the controller used by the WebView to add text-finding capabilities, such as the "Find on page" feature.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS

Implementation

FindInteractionController(
    {void Function(PlatformFindInteractionController controller,
            int activeMatchOrdinal, int numberOfMatches, bool isDoneCounting)?
        onFindResultReceived})
    : this.fromPlatformCreationParams(
          params: PlatformFindInteractionControllerCreationParams(
              onFindResultReceived: onFindResultReceived));