getDefaultSlingshotDistance method

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

Future<int> getDefaultSlingshotDistance() =>
    platform.getDefaultSlingshotDistance();