tertiary property
Get DynamicColor for tertiary.
Implementation
static DynamicColor tertiary = DynamicColor.fromPalette(
name: 'tertiary',
palette: (DynamicScheme s) => s.tertiaryPalette,
tone: (DynamicScheme s) {
if (_isMonochrome(s)) {
return s.isDark ? 90 : 25;
}
return s.isDark ? 80 : 40;
},
isBackground: true,
background: MaterialDynamicColors.highestSurface,
contrastCurve: ContrastCurve(3, 4.5, 7, 7),
toneDeltaPair: (DynamicScheme s) => ToneDeltaPair(
MaterialDynamicColors.tertiaryContainer,
MaterialDynamicColors.tertiary,
10,
TonePolarity.nearer,
false),
);