setVariant method

void setVariant(
  1. LiWETheme name,
  2. Color backgroundColor,
  3. Color color,
  4. Color borderColor,
)

Implementation

void setVariant(LiWETheme name, Color backgroundColor, Color color, Color borderColor) {
  var theme = variants[name];
  if (theme != null) {
    theme["backgroundColor"] = backgroundColor;
    theme["color"] = color;
    theme["borderColor"] = borderColor;
  }
}