themeMode property

ThemeMode? get themeMode

The theme mode for the application.

Controls whether the app uses light, dark, or system theme. Defaults to ThemeMode.system which follows the system preference. Examples: ThemeMode.light, ThemeMode.dark, ThemeMode.system

Implementation

ThemeMode? get themeMode => ThemeMode.system;