CustomThemeData constructor

const CustomThemeData({
  1. required Color primaryColor,
  2. required Color accentColor,
  3. required Color backgroundColor,
  4. required Color textColor,
  5. required Brightness brightness,
  6. Color surfaceColor = Colors.white,
  7. Color errorColor = Colors.red,
  8. String? fontFamily,
})

Implementation

const CustomThemeData({
  required this.primaryColor,
  required this.accentColor,
  required this.backgroundColor,
  required this.textColor,
  required this.brightness,
  this.surfaceColor = Colors.white,
  this.errorColor = Colors.red,
  this.fontFamily,
});