onSecondary property

DynamicColor onSecondary
getter/setter pair

Implementation

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