setSlingshotDistance method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.setSlingshotDistance', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setSlingshotDistance(int)')])
Future<void> setSlingshotDistance(
  1. int slingshotDistance
)

Sets the distance that the refresh indicator can be pulled beyond its resting position during a swipe gesture.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • slingshotDistance: all platforms

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

Implementation

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