setColor method
- Color color
Sets the color of the refresh control.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setColorSchemeColors)
- iOS WKWebView (Official API - UIRefreshControl.tintColor)
- Windows WebView2 (Official API - Flutter CircularProgressIndicator.color)
Parameters - Officially Supported Platforms/Implementations:
color: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> setColor(Color color) => platform.setColor(color);