keepTertiaryContainer property

bool keepTertiaryContainer
final

When using useKeyColors, set keepTertiaryContainer to true, to keep the resulting ColorScheme.tertiaryContainer color as defined by effective FlexColorScheme.tertiaryContainer input key color, while still letting all other colors derived from input tertiary key to be based on colors seeded from it.

This feature is useful if you want to lock the resulting ColorScheme.tertiaryContainer to an exact given color value, while using tertiary color as input for all other color values derived from tertiary key color. Normally when you key colors from tertiary, it will override the ColorScheme.tertiaryContainer value with a color value from the tertiary color generated tonal palette.

With keepTertiaryContainer set to true, it will keep the effective value it has in your FlexColorScheme.

Defaults to false.

Implementation

final bool keepTertiaryContainer;