darkTheme property Null safety
The ThemeData to use when a 'dark mode' is requested by the system.
Some host platforms allow the users to select a system-wide 'dark mode', or the application may want to offer the user the ability to choose a dark theme just for this application. This is theme that will be used for such cases. themeMode will control which theme will be used.
- themeMode, which controls which theme to use.
- MediaQueryData.platformBrightness, which indicates the platform's desired brightness and is used to automatically toggle between theme and darkTheme in MaterialApp.
- ThemeData.brightness, which is typically set to the value of MediaQueryData.platformBrightness.
final ThemeData? darkTheme;