setBackgroundColor method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.setProgressBackgroundColorSchemeColor', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setProgressBackgroundColorSchemeColor(int)'), IOSPlatform(apiName: 'UIView.backgroundColor', apiUrl: 'https://developer.apple.com/documentation/uikit/uiview/1622591-backgroundcolor'), WindowsPlatform(apiName: 'Flutter refresh indicator background color')])
Future<void> setBackgroundColor(
  1. Color color
)

Sets the background color of the refresh control.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • color: all platforms

Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'SwipeRefreshLayout.setProgressBackgroundColorSchemeColor',
      apiUrl:
          'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setProgressBackgroundColorSchemeColor(int)',
    ),
    IOSPlatform(
      apiName: 'UIView.backgroundColor',
      apiUrl:
          'https://developer.apple.com/documentation/uikit/uiview/1622591-backgroundcolor',
    ),
    WindowsPlatform(apiName: 'Flutter refresh indicator background color'),
  ],
)
Future<void> setBackgroundColor(Color color) {
  throw UnimplementedError(
    'setBackgroundColor is not implemented on the current platform',
  );
}