getDefaultSlingshotDistance method

  1. @override
Future<int> getDefaultSlingshotDistance()

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

Officially Supported Platforms/Implementations:

Implementation

@override
Future<int> getDefaultSlingshotDistance() async {
  Map<String, dynamic> args = <String, dynamic>{};
  return await channel?.invokeMethod<int>(
          'getDefaultSlingshotDistance', args) ??
      0;
}