themeColor property
ValueNotifier<Color>
get
themeColor
Implementation
static ValueNotifier<Color> get themeColor {
if (!kIsWasm && !kIsWeb && !_themeColorListener) {
SystemTheme.fallbackColor = red;
SystemTheme.accentColor.load().then((final _) {
_themeColor.value = SystemTheme.accentColor.accent.withAlpha(255);
SystemTheme.onChange.listen(
(final _) => _themeColor.value = SystemTheme.accentColor.accent.withAlpha(255),
);
});
_themeColorListener = true;
}
return _themeColor;
}