getNeutralVariantPalette method
Implementation
@override
TonalPalette getNeutralVariantPalette(
Variant variant,
Hct sourceColorHct,
bool isDark,
Platform platform,
double contrastLevel,
) => switch (variant) {
.content || .fidelity => .fromHueAndChroma(
sourceColorHct.hue,
(sourceColorHct.chroma / 8.0) + 4.0,
),
.fruitSalad => .fromHueAndChroma(sourceColorHct.hue, 16.0),
.monochrome => .fromHueAndChroma(sourceColorHct.hue, 0.0),
.neutral => .fromHueAndChroma(sourceColorHct.hue, 2.0),
.rainbow => .fromHueAndChroma(sourceColorHct.hue, 0.0),
.tonalSpot => .fromHueAndChroma(sourceColorHct.hue, 8.0),
.expressive => .fromHueAndChroma(
MathUtils.sanitizeDegreesDouble(sourceColorHct.hue + 15.0),
12.0,
),
.vibrant => .fromHueAndChroma(sourceColorHct.hue, 12.0),
};