setDistanceToTriggerSync method
Set the distance to trigger a sync in dips.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - SwipeRefreshLayout.setDistanceToTriggerSync)
Implementation
@override
Future<void> setDistanceToTriggerSync(int distanceToTriggerSync) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent('distanceToTriggerSync', () => distanceToTriggerSync);
await channel?.invokeMethod('setDistanceToTriggerSync', args);
}