isDark property
Define if the button is in dark or light appearance, follows the system Brightness by default.
Implementation
bool get isDark {
if (themeMode == ThemeMode.dark) return true;
if (themeMode == ThemeMode.light) return false;
return SchedulerBinding.instance.platformDispatcher.platformBrightness ==
Brightness.dark;
}