setSwapDarkColors method

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

Implementation

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