GroupLayer constructor
Creates a group layer object with child layers.
Parameters:
layers
— A List of layers to combine into a group layer.
Implementation
factory GroupLayer({
List<Layer> layers = const [],
}) {
_initializeArcGISEnvironmentIfNeeded();
final coreLayers = layers.toMutableArray(
valueType: _ElementType.layer,
);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GroupLayer_createWithLayers(
coreLayers._handle,
errorHandler,
);
});
final GroupLayer object = Layer._instanceCache.instanceWith(handle);
object._layers.value.setCache(layers);
return object;
}