useKeyColors property

bool useKeyColors
final

Turn on using Material 3 key color based TonalPalette colors for the resulting ColorScheme produced by FlexColorScheme.toScheme that is also consumed by FlexColorScheme.toTheme when it generates its ThemeData object.

The FlexColorScheme.primary will be used as key color for all TonalPalettes that in Material 3 design use primary color as its key color to generate a tonal palette. This includes all the primary tones, as well as neutral and neutral variant tones, used by all surfaces, shadows and background colors.

Defaults to true.

Implementation

final bool useKeyColors;