onPrimary property
Implementation
@override
DynamicColor get onPrimary {
final color2025 = DynamicColor(
name: "on_primary",
palette: (scheme) => scheme.primaryPalette,
background: (scheme) => scheme.platform == .phone ? primary : primaryDim,
contrastCurve: (scheme) => scheme.platform == .phone
? _getContrastCurve(6)
: _getContrastCurve(7),
);
return super.onPrimary.extendSpecVersion(.spec2025, color2025);
}