SimpleFillSymbol constructor

SimpleFillSymbol(
  1. {SimpleFillSymbolStyle style = SimpleFillSymbolStyle.solid,
  2. Color color = const Color(0xFFD3D3D3),
  3. LineSymbol? outline}
)

Creates a simple fill symbol object with a color, style and outline.

Parameters:

  • style — The type of simple fill symbol to create.
  • color — The color of the simple fill symbol.
  • outline — The outline of the simple fill symbol.

Implementation

factory SimpleFillSymbol(
    {SimpleFillSymbolStyle style = SimpleFillSymbolStyle.solid,
    Color color = const Color(0xFFD3D3D3),
    LineSymbol? outline}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreColor = color.toArcGIS();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_SimpleFillSymbol_createWith(style.coreValue,
        coreColor._handle, outline?._handle ?? ffi.nullptr, errorHandler);
  });
  final SimpleFillSymbol object =
      ArcGISSymbol._instanceCache.instanceWith(handle);
  object._color.cache(color);
  object._outline.cache(outline);
  return object;
}