copyWith method
FdcEditorInputStyle
copyWith({
- Color? fillColor,
- Color? focusedFillColor,
- Color? readOnlyFillColor,
- Color? disabledFillColor,
- Color? borderColor,
- Color? focusedBorderColor,
- Color? errorBorderColor,
- Color? disabledBorderColor,
- Color? readOnlyBorderColor,
- double? borderWidth,
- double? focusedBorderWidth,
- double? errorBorderWidth,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? contentPadding,
- TextStyle? textStyle,
- TextStyle? labelStyle,
- TextStyle? floatingLabelStyle,
- TextStyle? hintStyle,
- TextStyle? errorStyle,
- Color? cursorColor,
Creates a copy with selected values replaced.
Implementation
FdcEditorInputStyle copyWith({
Color? fillColor,
Color? focusedFillColor,
Color? readOnlyFillColor,
Color? disabledFillColor,
Color? borderColor,
Color? focusedBorderColor,
Color? errorBorderColor,
Color? disabledBorderColor,
Color? readOnlyBorderColor,
double? borderWidth,
double? focusedBorderWidth,
double? errorBorderWidth,
BorderRadiusGeometry? borderRadius,
EdgeInsetsGeometry? contentPadding,
TextStyle? textStyle,
TextStyle? labelStyle,
TextStyle? floatingLabelStyle,
TextStyle? hintStyle,
TextStyle? errorStyle,
Color? cursorColor,
}) {
return FdcEditorInputStyle(
fillColor: fillColor ?? this.fillColor,
focusedFillColor: focusedFillColor ?? this.focusedFillColor,
readOnlyFillColor: readOnlyFillColor ?? this.readOnlyFillColor,
disabledFillColor: disabledFillColor ?? this.disabledFillColor,
borderColor: borderColor ?? this.borderColor,
focusedBorderColor: focusedBorderColor ?? this.focusedBorderColor,
errorBorderColor: errorBorderColor ?? this.errorBorderColor,
disabledBorderColor: disabledBorderColor ?? this.disabledBorderColor,
readOnlyBorderColor: readOnlyBorderColor ?? this.readOnlyBorderColor,
borderWidth: borderWidth ?? this.borderWidth,
focusedBorderWidth: focusedBorderWidth ?? this.focusedBorderWidth,
errorBorderWidth: errorBorderWidth ?? this.errorBorderWidth,
borderRadius: borderRadius ?? this.borderRadius,
contentPadding: contentPadding ?? this.contentPadding,
textStyle: textStyle ?? this.textStyle,
labelStyle: labelStyle ?? this.labelStyle,
floatingLabelStyle: floatingLabelStyle ?? this.floatingLabelStyle,
hintStyle: hintStyle ?? this.hintStyle,
errorStyle: errorStyle ?? this.errorStyle,
cursorColor: cursorColor ?? this.cursorColor,
);
}