copyWith method

ThemeParameters copyWith({
  1. int? backgroundColor,
  2. int? secondaryBackgroundColor,
  3. int? headerBackgroundColor,
  4. int? bottomBarBackgroundColor,
  5. int? sectionBackgroundColor,
  6. int? sectionSeparatorColor,
  7. int? textColor,
  8. int? accentTextColor,
  9. int? sectionHeaderTextColor,
  10. int? subtitleTextColor,
  11. int? destructiveTextColor,
  12. int? hintColor,
  13. int? linkColor,
  14. int? buttonColor,
  15. int? buttonTextColor,
})

Implementation

ThemeParameters copyWith({
  int? backgroundColor,
  int? secondaryBackgroundColor,
  int? headerBackgroundColor,
  int? bottomBarBackgroundColor,
  int? sectionBackgroundColor,
  int? sectionSeparatorColor,
  int? textColor,
  int? accentTextColor,
  int? sectionHeaderTextColor,
  int? subtitleTextColor,
  int? destructiveTextColor,
  int? hintColor,
  int? linkColor,
  int? buttonColor,
  int? buttonTextColor,
}) => ThemeParameters(
  backgroundColor: backgroundColor ?? this.backgroundColor,
  secondaryBackgroundColor:
      secondaryBackgroundColor ?? this.secondaryBackgroundColor,
  headerBackgroundColor: headerBackgroundColor ?? this.headerBackgroundColor,
  bottomBarBackgroundColor:
      bottomBarBackgroundColor ?? this.bottomBarBackgroundColor,
  sectionBackgroundColor:
      sectionBackgroundColor ?? this.sectionBackgroundColor,
  sectionSeparatorColor: sectionSeparatorColor ?? this.sectionSeparatorColor,
  textColor: textColor ?? this.textColor,
  accentTextColor: accentTextColor ?? this.accentTextColor,
  sectionHeaderTextColor:
      sectionHeaderTextColor ?? this.sectionHeaderTextColor,
  subtitleTextColor: subtitleTextColor ?? this.subtitleTextColor,
  destructiveTextColor: destructiveTextColor ?? this.destructiveTextColor,
  hintColor: hintColor ?? this.hintColor,
  linkColor: linkColor ?? this.linkColor,
  buttonColor: buttonColor ?? this.buttonColor,
  buttonTextColor: buttonTextColor ?? this.buttonTextColor,
);