AppTheme constructor

AppTheme({ThemeType themeType: ThemeType.LIGHT, bool useSystem: true })

The ctor takes in override values for the initial theme type and system settings preference.

Implementation

AppTheme({
  this.themeType = ThemeType.LIGHT,
  this.useSystem = true,
}) : super() {
  loadSettings();
}