GenerateLayerOption.withLayerIdWhereClause constructor

GenerateLayerOption.withLayerIdWhereClause(
  1. {required int layerId,
  2. required String whereClause}
)

Creates a new generate layer option instance with the supplied layer id and where clause for use with generate geodatabase on the geodatabase sync task.

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

Parameters:

  • layerId — A layer id in the service.
  • whereClause — a where clause to apply to the layer.

Implementation

factory GenerateLayerOption.withLayerIdWhereClause(
    {required int layerId, required String whereClause}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreWhereClause = _CString(whereClause);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GenerateLayerOption_createWithLayerIdWhereClause(
        layerId, coreWhereClause.bytes, errorHandler);
  });
  return GenerateLayerOption._withHandle(handle);
}