pullToRefreshController property

PullToRefreshController? get pullToRefreshController
inherited

Represents the pull-to-refresh feature controller.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView

Use the PlatformInAppBrowser.isPropertySupported method to check if this property is supported at runtime.

Implementation

PullToRefreshController? get pullToRefreshController {
  final pullToRefreshControllerPlatform = platform.pullToRefreshController;
  if (pullToRefreshControllerPlatform == null) {
    return null;
  }
  return PullToRefreshController.fromPlatform(
    platform: pullToRefreshControllerPlatform,
  );
}