getDefaultSlingshotDistance method
Gets the default distance that the refresh indicator can be pulled beyond its resting position during a swipe gesture.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - SwipeRefreshLayout.DEFAULT_SLINGSHOT_DISTANCE)
Implementation
@override
Future<int> getDefaultSlingshotDistance() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod<int>(
'getDefaultSlingshotDistance', args) ??
0;
}