GenerateLayerOption.withLayerIdIncludeRelated constructor
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:
- GenerateLayerOption.queryOption = GenerateLayerQueryOption.none
- GenerateLayerOption.useGeometry = true
- GenerateLayerOption.whereClause = ""
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);
}