onPrimary property

  1. @override
DynamicColor get onPrimary
override

Implementation

@override
DynamicColor get onPrimary {
  final color2026 = DynamicColor(
    name: "on_primary",
    palette: (scheme) => scheme.primaryPalette,
    background: (scheme) => primary,
    contrastCurve: (scheme) => _getContrastCurve(6.0),
  );
  return super.onPrimary.extendSpecVersion(.spec2026, color2026);
}