copyWith method

CdxInputThemeData copyWith({
  1. Color? backgroundColor,
  2. Color? disabledBackgroundColor,
  3. double? containerHeight,
  4. Color? cursorColor,
  5. TextStyle? textStyle,
  6. Color? iconColor,
  7. EdgeInsets? contentPadding,
  8. EdgeInsets? labelPadding,
  9. EdgeInsets? containerPadding,
  10. TextStyle? hintStyle,
  11. TextStyle? labelTextStyle,
  12. bool? outlinedLabel,
  13. BorderRadius? borderRadius,
  14. BorderSide? enabledBorder,
  15. BorderSide? disabledBorder,
  16. BorderSide? focusedBorder,
  17. BorderSide? errorBorder,
  18. TextStyle? errorTextStyle,
})

Implementation

CdxInputThemeData copyWith({
  Color? backgroundColor,
  Color? disabledBackgroundColor,
  double? containerHeight,
  Color? cursorColor,
  TextStyle? textStyle,
  Color? iconColor,
  EdgeInsets? contentPadding,
  EdgeInsets? labelPadding,
  EdgeInsets? containerPadding,
  TextStyle? hintStyle,
  TextStyle? labelTextStyle,
  bool? outlinedLabel,
  BorderRadius? borderRadius,
  BorderSide? enabledBorder,
  BorderSide? disabledBorder,
  BorderSide? focusedBorder,
  BorderSide? errorBorder,
  TextStyle? errorTextStyle,
}) {

  return CdxInputThemeData(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    disabledBackgroundColor: disabledBackgroundColor ?? this.disabledBackgroundColor,
    containerHeight: containerHeight ?? this.containerHeight,
    cursorColor: cursorColor ?? this.cursorColor,
    textStyle: textStyle ?? this.textStyle,
    iconColor: iconColor ?? this.iconColor,
    contentPadding: contentPadding ?? this.contentPadding,
    labelPadding: labelPadding ?? this.labelPadding,
    containerPadding: containerPadding ?? this.containerPadding,
    hintStyle: hintStyle ?? this.hintStyle,
    labelTextStyle: labelTextStyle ?? this.labelTextStyle,
    outlinedLabel: outlinedLabel ?? this.outlinedLabel,
    borderRadius: borderRadius ?? this.borderRadius,
    enabledBorder: enabledBorder ?? this.enabledBorder,
    disabledBorder: disabledBorder ?? this.disabledBorder,
    focusedBorder: focusedBorder ?? this.focusedBorder,
    errorBorder: errorBorder ?? this.errorBorder,
    errorTextStyle: errorTextStyle ?? this.errorTextStyle,
  );
}