onBackground property

DynamicColor onBackground
getter/setter pair

Implementation

static DynamicColor onBackground = DynamicColor.fromPalette(
  name: 'on_background',
  palette: (s) => s.neutralPalette,
  tone: (s) => s.isDark ? 90 : 10,
  background: (s) => MaterialDynamicColors.background,
  contrastCurve: ContrastCurve(3, 3, 4.5, 7),
);