primaryChroma property

double? primaryChroma
final

Cam16 chroma value to use for primary colors FlexTonalPalette generation.

If null, the chroma value from the used primary seed key color is used, if it is larger than primaryMinChroma.

Flutter SDK ColorScheme.fromSeed uses "null", with a primaryMinChroma set to 48, so the chroma from the key color is used when above 48, but never lower than 48. This keeps primary color at the used tonal values reasonably vivid and usable regardless of uses primary key color.

Defaults to null, and chroma from primary seed key is used for chroma, if it is over primaryMinChroma.

Implementation

final double? primaryChroma;