setSlingshotDistance method

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

Future<void> setSlingshotDistance(int slingshotDistance) =>
    platform.setSlingshotDistance(slingshotDistance);