CompositeSymbol constructor

CompositeSymbol(
  1. {List<ArcGISSymbol> symbols = const []}
)

Creates a composite symbol using a collection of symbols.

Parameters:

  • symbols — Collection of symbols.

Implementation

factory CompositeSymbol({List<ArcGISSymbol> symbols = const []}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreSymbols = symbols.toMutableArray(valueType: _ElementType.symbol);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_CompositeSymbol_createWithSymbols(
        coreSymbols._handle, errorHandler);
  });
  final CompositeSymbol object =
      ArcGISSymbol._instanceCache.instanceWith(handle);
  object._symbols.value.setCache(symbols);
  return object;
}