GenerateLayerOption constructor

GenerateLayerOption(
  1. {int layerId = 0}
)

Creates a new generate layer option instance with a given layer id for use with generate geodatabase on the geodatabase sync task.

Creates a new instance with the supplied layer ID and the following values:

Parameters:

  • layerId — A layer id in the service.

Implementation

factory GenerateLayerOption({int layerId = 0}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GenerateLayerOption_createWithLayerId(
        layerId, errorHandler);
  });
  return GenerateLayerOption._withHandle(handle);
}