copyWith method

FdcEditorInputStyle copyWith({
  1. Color? fillColor,
  2. Color? focusedFillColor,
  3. Color? readOnlyFillColor,
  4. Color? disabledFillColor,
  5. Color? borderColor,
  6. Color? focusedBorderColor,
  7. Color? errorBorderColor,
  8. Color? disabledBorderColor,
  9. Color? readOnlyBorderColor,
  10. double? borderWidth,
  11. double? focusedBorderWidth,
  12. double? errorBorderWidth,
  13. BorderRadiusGeometry? borderRadius,
  14. EdgeInsetsGeometry? contentPadding,
  15. TextStyle? textStyle,
  16. TextStyle? labelStyle,
  17. TextStyle? floatingLabelStyle,
  18. TextStyle? hintStyle,
  19. TextStyle? errorStyle,
  20. 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,
  );
}