setDistanceToTriggerSync method
- int distanceToTriggerSync
Set the distance to trigger a sync in dips.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setDistanceToTriggerSync)
Parameters - Officially Supported Platforms/Implementations:
distanceToTriggerSync: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> setDistanceToTriggerSync(int distanceToTriggerSync) =>
platform.setDistanceToTriggerSync(distanceToTriggerSync);