copyWith method

ThemeParameters copyWith({
  1. int? backgroundColor,
  2. int? secondaryBackgroundColor,
  3. int? textColor,
  4. int? hintColor,
  5. int? linkColor,
  6. int? buttonColor,
  7. int? buttonTextColor,
})

Implementation

ThemeParameters copyWith({
  int? backgroundColor,
  int? secondaryBackgroundColor,
  int? textColor,
  int? hintColor,
  int? linkColor,
  int? buttonColor,
  int? buttonTextColor,
}) =>
    ThemeParameters(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      secondaryBackgroundColor:
          secondaryBackgroundColor ?? this.secondaryBackgroundColor,
      textColor: textColor ?? this.textColor,
      hintColor: hintColor ?? this.hintColor,
      linkColor: linkColor ?? this.linkColor,
      buttonColor: buttonColor ?? this.buttonColor,
      buttonTextColor: buttonTextColor ?? this.buttonTextColor,
    );