AccentColor constructor

AccentColor(
  1. String primary,
  2. Map<String, Color> swatch
)

Creates a new accent color.

Implementation

AccentColor(this.primary, this.swatch)
    : super(swatch[primary]!.value, swatch);