themeMode property
The current ThemeMode
Use isDarkTheme to check if the current theme is dark.
Implementation
@override
ThemeMode get themeMode {
ReactiveStatelessWidget.addToObs?.call(injected);
return _themeMode;
}
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();
}