setColor method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.setColorSchemeColors', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setColorSchemeColors(int...)'), IOSPlatform(apiName: 'UIRefreshControl.tintColor', apiUrl: 'https://developer.apple.com/documentation/uikit/uirefreshcontrol/1624847-tintcolor'), WindowsPlatform(apiName: 'Flutter CircularProgressIndicator.color')])
Future<void> setColor(
  1. Color color
)

Sets the 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.setColorSchemeColors',
      apiUrl:
          'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setColorSchemeColors(int...)',
    ),
    IOSPlatform(
      apiName: 'UIRefreshControl.tintColor',
      apiUrl:
          'https://developer.apple.com/documentation/uikit/uirefreshcontrol/1624847-tintcolor',
    ),
    WindowsPlatform(apiName: 'Flutter CircularProgressIndicator.color'),
  ],
)
Future<void> setColor(Color color) {
  throw UnimplementedError(
    'setColor is not implemented on the current platform',
  );
}