onSecondary property
Get DynamicColor for onSecondary.
Implementation
static DynamicColor onSecondary = DynamicColor.fromPalette(
name: 'on_secondary',
palette: (DynamicScheme s) => s.secondaryPalette,
tone: (DynamicScheme s) {
if (_isMonochrome(s)) {
return s.isDark ? 10 : 100;
} else {
return s.isDark ? 20 : 100;
}
},
background: (DynamicScheme s) => MaterialDynamicColors.secondary,
contrastCurve: ContrastCurve(4.5, 7, 11, 21),
);