themeMode property

  1. @override
ThemeMode themeMode
override

The current ThemeMode

Use isDarkTheme to check if the current theme is dark.

Implementation

@override
ThemeMode get themeMode {
  ReactiveStatelessWidget.addToObs?.call(injected);
  return _themeMode;
}
  1. @override
void themeMode=(ThemeMode mode)
override

The current ThemeMode

Use isDarkTheme to check if the current theme is dark.

Implementation

@override
set themeMode(ThemeMode mode) {
  assert(() {
    _assertIsLinkedToTopStatelessWidget();
    return true;
  }());
  if (_themeMode == mode) {
    return;
  }
  _themeMode = mode;

  if (injected is InjectedImpRedoPersistState) {
    injected.persistState();
  }

  injected.notify();
}