setSlingshotDistance method
Sets the 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.setSlingshotDistance)
Implementation
@override
Future<void> setSlingshotDistance(int slingshotDistance) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent('slingshotDistance', () => slingshotDistance);
await channel?.invokeMethod('setSlingshotDistance', args);
}