SyncLayerOption constructor

SyncLayerOption({
  1. int layerId = 0,
  2. SyncDirection syncDirection = SyncDirection.bidirectional,
})

Creates a new sync layer option with layer id and sync direction.

Parameters:

  • layerId — A layer id to synchronize.
  • syncDirection — The synchronization direction of the layer or table.

Implementation

factory SyncLayerOption({
  int layerId = 0,
  SyncDirection syncDirection = SyncDirection.bidirectional,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_SyncLayerOption_createWithLayerIdSyncDirection(
      layerId,
      syncDirection.coreValue,
      errorHandler,
    );
  });
  return SyncLayerOption._withHandle(handle);
}