themeMode property

ThemeMode get themeMode

Converts Brightness to ThemeMode.

Implementation

ThemeMode get themeMode => this == Brightness.light ? ThemeMode.light : ThemeMode.dark;