onSurfaceVariant property

  1. @override
DynamicColor get onSurfaceVariant
override

Implementation

@override
DynamicColor get onSurfaceVariant {
  final color2026 = DynamicColor(
    name: "on_surface_variant",
    palette: (scheme) => scheme.neutralPalette,
    chromaMultiplier: (scheme) => scheme.variant == .cmf ? 1.7 : 0.0,
    background: highestSurface,
    contrastCurve: (scheme) => _getContrastCurve(scheme.isDark ? 6.0 : 4.5),
  );
  return super.onSurfaceVariant.extendSpecVersion(.spec2026, color2026);
}