copyWith method

CkInputConfig copyWith({
  1. TextStyle? hintStyle,
  2. TextStyle? textStyle,
  3. double? fontSize,
  4. TextAlign? textAlign,
  5. Color? borderColor,
  6. double? borderRadius,
  7. double? borderWidth,
  8. Color? backgroundColor,
  9. bool? enableCapitalization,
})

Implementation

CkInputConfig copyWith({
  TextStyle? hintStyle,
  TextStyle? textStyle,
  double? fontSize,
  TextAlign? textAlign,
  Color? borderColor,
  double? borderRadius,
  double? borderWidth,
  Color? backgroundColor,
  bool? enableCapitalization,
}) {
  return CkInputConfig(
    hintStyle: hintStyle ?? this.hintStyle,
    textStyle: textStyle ?? this.textStyle,
    fontSize: fontSize ?? this.fontSize,
    textAlign: textAlign ?? this.textAlign,
    borderColor: borderColor ?? this.borderColor,
    borderRadius: borderRadius ?? this.borderRadius,
    borderWidth: borderWidth ?? this.borderWidth,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    enableCapitalization: enableCapitalization ?? this.enableCapitalization,
  );
}