themeMode property
ThemeMode
get
themeMode
Implementation
static ThemeMode get themeMode =>
ThemeMode.values
.where((element) =>
element.index ==
box.get('_arcane_themeMode',
defaultValue: ThemeMode.system.index))
.firstOrNull ??
ThemeMode.system;
set
themeMode
(ThemeMode mode)
Implementation
static set themeMode(ThemeMode mode) {
box.put('_arcane_themeMode', mode.index);
opal.themeMode.value = mode;
}