setDistanceToTriggerSync method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.setDistanceToTriggerSync', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setDistanceToTriggerSync(int)')])
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

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'SwipeRefreshLayout.setDistanceToTriggerSync',
      apiUrl:
          'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setDistanceToTriggerSync(int)',
    ),
  ],
)
Future<void> setDistanceToTriggerSync(int distanceToTriggerSync) {
  throw UnimplementedError(
    'setDistanceToTriggerSync is not implemented on the current platform',
  );
}