themeMode property

ThemeMode get themeMode

Implementation

ThemeMode get themeMode {
  try {
    return Theme.of(this).brightness == Brightness.light
        ? ThemeMode.light
        : ThemeMode.dark;
  } catch (e) {
    return ThemeMode.system;
  }
}