onPrimary property

  1. @override
DynamicColor get onPrimary
override

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);
}