brightness property
Brightness
get
brightness
Implementation
Brightness get brightness => switch (this) {
ThemeMode.light => Brightness.light,
ThemeMode.dark => Brightness.dark,
ThemeMode.system =>
WidgetsBinding.instance.platformDispatcher.platformBrightness,
};