SchemeTonalSpot constructor
SchemeTonalSpot({})
Implementation
SchemeTonalSpot({
required Hct sourceColorHct,
required super.isDark,
required super.contrastLevel,
}) : super(
sourceColorArgb: sourceColorHct.toInt(),
variant: Variant.tonalSpot,
primaryPalette: TonalPalette.of(sourceColorHct.hue, 36.0),
secondaryPalette: TonalPalette.of(sourceColorHct.hue, 16.0),
tertiaryPalette: TonalPalette.of(
MathUtils.sanitizeDegreesDouble(sourceColorHct.hue + 60.0),
24.0,
),
neutralPalette: TonalPalette.of(sourceColorHct.hue, 6.0),
neutralVariantPalette: TonalPalette.of(sourceColorHct.hue, 8.0),
);