setUseToDarkMethod method

void setUseToDarkMethod(
  1. bool? value, [
  2. bool notify = true
])

Implementation

void setUseToDarkMethod(bool? value, [bool notify = true]) {
  if (value == null) return;
  if (value == _useToDarkMethod) return;
  _useToDarkMethod = value;
  if (notify) notifyListeners();
  unawaited(_themeService.save(Store.keyUseToDarkMethod, value));
}