ThemeSettingPage constructor

const ThemeSettingPage({
  1. Key? key,
  2. String title = 'Theme settings',
  3. required AppTheme currentAppTheme,
  4. required List<Color> primaryColors,
  5. ValueChanged<AppTheme>? onPreviewPressed,
  6. ValueChanged<AppTheme>? onApplyPressed,
})

Implementation

const ThemeSettingPage({
  Key? key,
  this.title = 'Theme settings',
  required this.currentAppTheme,
  required this.primaryColors,
  this.onPreviewPressed,
  this.onApplyPressed,
})  : assert(primaryColors.length > 0),
      super(key: key);