onSurface property
Implementation
@override
DynamicColor get onSurface {
final color2026 = DynamicColor(
name: "on_surface",
palette: (scheme) => scheme.neutralPalette,
chromaMultiplier: (scheme) => scheme.variant == .cmf ? 1.7 : 0.0,
background: highestSurface,
contrastCurve: (scheme) => _getContrastCurve(scheme.isDark ? 11.0 : 9.0),
);
return super.onSurface.extendSpecVersion(.spec2026, color2026);
}