SfSymbol.multicolor constructor
const
SfSymbol.multicolor({
- Key? key,
- required String name,
- required double size,
- Color? color,
- FontWeight weight = FontWeight.normal,
- SfSymbolScale scale = SfSymbolScale.medium,
- double? variableValue,
- SfSymbolEffect? effect,
- bool effectRepeats = true,
- 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;