GenerateLayerOption.withLayerIdIncludeRelated constructor

GenerateLayerOption.withLayerIdIncludeRelated(
  1. {required int layerId,
  2. required bool includeRelated}
)

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

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

includeRelated only applies when the queryOption is none.

Parameters:

  • layerId — A layer id in the service.
  • includeRelated — Indicates if related rows should be included.

Implementation

factory GenerateLayerOption.withLayerIdIncludeRelated(
    {required int layerId, required bool includeRelated}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GenerateLayerOption_createWithLayerIdIncludeRelated(
        layerId, includeRelated, errorHandler);
  });
  return GenerateLayerOption._withHandle(handle);
}