copyWith method
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,
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,
);
}