currentMode property
The actively-resolved theme mode. Always either ThemeMode.light or ThemeMode.dark — never ThemeMode.system. Reactive to changes in both mode and the OS platform brightness.
This is what you pass to theme to look up the active ThemeData.
Implementation
late final Computed<ThemeMode> currentMode = Computed<ThemeMode>(() {
final intent = mode.value;
if (intent == ThemeMode.light) return ThemeMode.light;
if (intent == ThemeMode.dark) return ThemeMode.dark;
return _platformBrightness.value == Brightness.dark
? ThemeMode.dark
: ThemeMode.light;
});