onSurface property
getter/setter pair
Implementation
static DynamicColor onSurface = DynamicColor.fromPalette(
name: 'on_surface',
palette: (s) => s.neutralPalette,
tone: (s) => s.isDark ? 90 : 10,
background: (s) => MaterialDynamicColors.highestSurface(s),
contrastCurve: ContrastCurve(4.5, 7, 11, 21),
);