setBackgroundColor method
- Color color
Sets the background color of the refresh control.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setProgressBackgroundColorSchemeColor)
- iOS WKWebView (Official API - UIView.backgroundColor)
- Windows WebView2 (Official API - Flutter refresh indicator background 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> setBackgroundColor(Color color) =>
platform.setBackgroundColor(color);