setUseSystem method

void setUseSystem (bool val)

Used by the UI to switch between using and not using system (iOS/Android/Chrome) theme settings. It will notify all the widgets that depends on the service to rebuild.

Implementation

void setUseSystem(bool val) {
  useSystem = val;
  saveSettings();
  notifyListeners();
}