setSlingshotDistance method
- 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
Future<void> setSlingshotDistance(int slingshotDistance) =>
platform.setSlingshotDistance(slingshotDistance);