getDefaultSlingshotDistance method

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

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

Officially Supported Platforms/Implementations:

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

Implementation

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