ColorPalette constructor

ColorPalette({
  1. required String title,
  2. String? colorName,
  3. required Color primary,
  4. MaterialAccentColor? accent,
  5. int threshold = 900,
  6. bool singleColor = false,
  7. bool variantsWithBaseColor = false,
})

Implementation

ColorPalette(
    {required this.title,
    this.colorName,
    required this.primary,
    this.accent,
    this.threshold = 900,
    this.singleColor = false,
    bool variantsWithBaseColor = false}) {
  variants = _generateVariants(withBaseColor: variantsWithBaseColor);
}