setAccentColour method

void setAccentColour(
  1. String name
)

Implementation

void setAccentColour(String name) {
  Color? color = systemColors[name];
  colorConfig = name;

  if (color == null) {
    color = systemColors["systemBlue"];
    colorConfig = "systemBlue";
  }

  initColors(colorConfig);
  notifyListeners();
}