SimpleRenderer constructor

SimpleRenderer(
  1. {ArcGISSymbol? symbol}
)

Creates a new simple renderer with the given symbol.

Parameters:

  • symbol — The symbol.

Implementation

factory SimpleRenderer({ArcGISSymbol? symbol}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_SimpleRenderer_createWithSymbol(
        symbol?._handle ?? ffi.nullptr, errorHandler);
  });
  final SimpleRenderer object = Renderer._instanceCache.instanceWith(handle);
  object._symbol.cache(symbol);
  return object;
}