setEnabled method
- bool enabled
Sets whether the pull-to-refresh feature is enabled or not.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setEnabled)
- iOS WKWebView (Official API - UIScrollView.refreshControl)
- Windows WebView2 (Official API - Flutter pointer events + WebView2 ExecuteScript)
Parameters - Officially Supported Platforms/Implementations:
enabled: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> setEnabled(bool enabled) => platform.setEnabled(enabled);