setSize method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.setSize', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setSize(int)')])
  2. @Deprecated("Use setIndicatorSize instead")
Future<void> setSize(
  1. AndroidPullToRefreshSize size
)

Use setIndicatorSize instead.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • size: all platforms

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

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'SwipeRefreshLayout.setSize',
      apiUrl:
          'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setSize(int)',
    ),
  ],
)
@Deprecated("Use setIndicatorSize instead")
Future<void> setSize(AndroidPullToRefreshSize size) {
  throw UnimplementedError(
    'setSize is not implemented on the current platform',
  );
}