getDefaultSlingshotDistance method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.DEFAULT_SLINGSHOT_DISTANCE', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#DEFAULT_SLINGSHOT_DISTANCE()')])
Gets the default 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.DEFAULT_SLINGSHOT_DISTANCE)
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',
);
}