primary property
Implementation
@override
DynamicColor get primary {
final color2026 = DynamicColor(
name: "primary",
palette: (scheme) => scheme.primaryPalette,
tone: (scheme) => scheme.sourceColorHct.chroma <= 12
? scheme.isDark
? 80.0
: 40.0
: scheme.sourceColorHct.tone,
isBackground: true,
background: highestSurface,
contrastCurve: (scheme) => _getContrastCurve(4.5),
);
return super.primary.extendSpecVersion(.spec2026, color2026);
}