SfSymbol.multicolor constructor

const SfSymbol.multicolor({
  1. Key? key,
  2. required String name,
  3. required double size,
  4. Color? color,
  5. FontWeight weight = FontWeight.normal,
  6. SfSymbolScale scale = SfSymbolScale.medium,
  7. double? variableValue,
  8. SfSymbolEffect? effect,
  9. bool effectRepeats = true,
  10. String? semanticLabel,
})

Draws the symbol in its own built-in colors.

Symbols without a multicolor variant fall back to a monochrome appearance, so pass color to control that fallback.

Implementation

const SfSymbol.multicolor({
  super.key,
  required this.name,
  required this.size,
  this.color,
  this.weight = FontWeight.normal,
  this.scale = SfSymbolScale.medium,
  this.variableValue,
  this.effect,
  this.effectRepeats = true,
  this.semanticLabel,
})  : renderingMode = SfSymbolRenderingMode.multicolor,
      colors = null;