onTertiary property
Get DynamicColor for onTertiary.
Implementation
static DynamicColor onTertiary = DynamicColor.fromPalette(
name: 'on_tertiary',
palette: (DynamicScheme s) => s.tertiaryPalette,
tone: (DynamicScheme s) {
if (_isMonochrome(s)) {
return s.isDark ? 10 : 90;
}
return s.isDark ? 20 : 100;
},
background: (DynamicScheme s) => MaterialDynamicColors.tertiary,
contrastCurve: ContrastCurve(4.5, 7, 11, 21),
);