copyWith method

AppTheme copyWith({
  1. Color? primaryColor,
  2. Color? secondaryColor,
  3. Color? backgroundColor,
  4. Brightness? brightness,
})

Implementation

AppTheme copyWith({
  Color? primaryColor,
  Color? secondaryColor,
  Color? backgroundColor,
  Brightness? brightness,
}) {
  return AppTheme(
    primaryColor: primaryColor ?? this.primaryColor,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    brightness: brightness ?? this.brightness,
  );
}