setSlingshotDistance method

  1. @override
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:

Implementation

@override
Future<void> setSlingshotDistance(int slingshotDistance) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('slingshotDistance', () => slingshotDistance);
  await channel?.invokeMethod('setSlingshotDistance', args);
}