SchemeVibrant constructor

SchemeVibrant({
  1. required Hct sourceColorHct,
  2. required bool isDark,
  3. required double contrastLevel,
})

Implementation

SchemeVibrant({
  required Hct sourceColorHct,
  required super.isDark,
  required super.contrastLevel,
}) : super(
        sourceColorArgb: sourceColorHct.toInt(),
        variant: Variant.vibrant,
        primaryPalette: TonalPalette.of(sourceColorHct.hue, 200.0),
        secondaryPalette: TonalPalette.of(
          DynamicScheme.getRotatedHue(
              sourceColorHct, hues, secondaryRotations),
          24.0,
        ),
        tertiaryPalette: TonalPalette.of(
          DynamicScheme.getRotatedHue(
              sourceColorHct, hues, tertiaryRotations),
          32.0,
        ),
        neutralPalette: TonalPalette.of(sourceColorHct.hue, 10.0),
        neutralVariantPalette: TonalPalette.of(sourceColorHct.hue, 12.0),
      );