setSlingshotDistance method

Future<void> setSlingshotDistance(
  1. int slingshotDistance
)

Sets the distance that the refresh indicator can be pulled beyond its resting position during a swipe gesture.

NOTE: Available only on Android.

Implementation

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