setSlingshotDistance method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.setSlingshotDistance', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setSlingshotDistance(int)')])
- int slingshotDistance
Sets the distance that the refresh indicator can be pulled beyond its resting position during a swipe gesture.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setSlingshotDistance)
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',
);
}