setDistanceToTriggerSync method

Future<void> setDistanceToTriggerSync(
  1. int distanceToTriggerSync
)

Set the distance to trigger a sync in dips.

Officially Supported Platforms/Implementations:

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);