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 sync.
  • syncDirection — the direction to sync the layer.

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