setTheme method

void setTheme(
  1. RCIMIWAppTheme theme
)

Implementation

void setTheme(RCIMIWAppTheme theme) {
  if (_currentTheme != theme) {
    _currentTheme = theme;
    if (theme != RCIMIWAppTheme.custom) {
      _customColor = null; // 非自定义时清除自定义值
      _customIcon = null;
    }
    notifyListeners();
  }
}