copyWith method
CkInputConfig
copyWith(
{ - TextStyle? hintStyle,
- TextStyle? textStyle,
- double? fontSize,
- TextAlign? textAlign,
- Color? borderColor,
- Color? errorColor,
- double? borderRadius,
- double? borderWidth,
- Color? backgroundColor,
- bool? enableCapitalization,
})
Implementation
CkInputConfig copyWith({
TextStyle? hintStyle,
TextStyle? textStyle,
double? fontSize,
TextAlign? textAlign,
Color? borderColor,
Color? errorColor,
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,
errorColor: errorColor ?? this.errorColor,
borderRadius: borderRadius ?? this.borderRadius,
borderWidth: borderWidth ?? this.borderWidth,
backgroundColor: backgroundColor ?? this.backgroundColor,
enableCapitalization: enableCapitalization ?? this.enableCapitalization,
);
}