themeColor method

void themeColor(
  1. String slot,
  2. int argb, {
  3. int? dark,
})

Sets a theme color slot.

slot is one of: primary, secondary, tertiary, alternate, primaryBackground, secondaryBackground, primaryText, secondaryText, accent1accent4, success, warning, error, info.

Implementation

void themeColor(String slot, int argb, {int? dark}) {
  _rawMutations.add((project) {
    setThemeColor(project, slot, ffColor(argb, dark: dark));
  });
}