copyWith method

FieldColorScheme copyWith({
  1. Color? backgroundColor,
  2. FieldGradientColors? backgroundGradient,
  3. Color? borderColor,
  4. FieldGradientColors? borderGradient,
  5. int? borderSize,
  6. Color? textColor,
  7. Color? hintTextColor,
  8. Color? titleColor,
  9. Color? descriptionColor,
  10. Color? iconColor,
  11. Color? textBackgroundColor,
  12. FieldGradientColors? textBackgroundGradient,
})

Implementation

FieldColorScheme copyWith({
  Color? backgroundColor,
  FieldGradientColors? backgroundGradient,
  Color? borderColor,
  FieldGradientColors? borderGradient,
  int? borderSize,
  Color? textColor,
  Color? hintTextColor,
  Color? titleColor,
  Color? descriptionColor,
  Color? iconColor,
  Color? textBackgroundColor,
  FieldGradientColors? textBackgroundGradient,
}) {
  return FieldColorScheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    backgroundGradient: backgroundGradient ?? this.backgroundGradient,
    borderColor: borderColor ?? this.borderColor,
    borderGradient: borderGradient ?? this.borderGradient,
    borderSize: borderSize ?? this.borderSize,
    textColor: textColor ?? this.textColor,
    hintTextColor: hintTextColor ?? this.hintTextColor,
    titleColor: titleColor ?? this.titleColor,
    descriptionColor: descriptionColor ?? this.descriptionColor,
    iconColor: iconColor ?? this.iconColor,
    textBackgroundColor: textBackgroundColor ?? this.textBackgroundColor,
    textBackgroundGradient:
        textBackgroundGradient ?? this.textBackgroundGradient,
  );
}