ThemeColors constructor

ThemeColors({
  1. dynamic primary,
  2. dynamic accent,
  3. dynamic neutral,
  4. dynamic positive,
  5. dynamic negative,
  6. dynamic warning,
})

Implementation

ThemeColors({primary, accent, neutral, positive, negative, warning}) {
  if (primary != null) this.primary = primary;
  if (accent != null) this.accent = accent;
  if (neutral != null) this.neutral = neutral;
  if (positive != null) this.positive = positive;
  if (negative != null) this.negative = negative;
  if (warning != null) this.warning = warning;
}