copyWith method

TextAreaProps copyWith({
  1. String? placeholder,
  2. int? rows,
  3. int? cols,
  4. bool? disabled,
  5. bool? required,
  6. bool? readOnly,
  7. TextAreaResize? resize,
  8. String? minWidth,
  9. String? maxWidth,
  10. String? minHeight,
  11. String? maxHeight,
  12. String? value,
  13. String? name,
  14. String? id,
  15. String? label,
  16. String? error,
  17. String? helperText,
  18. void onChanged(
    1. String
    )?,
  19. bool? fullWidth,
  20. ArcaneStyleData? styles,
  21. ArcaneDecoration? decoration,
})

Implementation

TextAreaProps copyWith({
  String? placeholder,
  int? rows,
  int? cols,
  bool? disabled,
  bool? required,
  bool? readOnly,
  TextAreaResize? resize,
  String? minWidth,
  String? maxWidth,
  String? minHeight,
  String? maxHeight,
  String? value,
  String? name,
  String? id,
  String? label,
  String? error,
  String? helperText,
  void Function(String)? onChanged,
  bool? fullWidth,
  ArcaneStyleData? styles,
  ArcaneDecoration? decoration,
}) {
  return TextAreaProps(
    placeholder: placeholder ?? this.placeholder,
    rows: rows ?? this.rows,
    cols: cols ?? this.cols,
    disabled: disabled ?? this.disabled,
    required: required ?? this.required,
    readOnly: readOnly ?? this.readOnly,
    resize: resize ?? this.resize,
    minWidth: minWidth ?? this.minWidth,
    maxWidth: maxWidth ?? this.maxWidth,
    minHeight: minHeight ?? this.minHeight,
    maxHeight: maxHeight ?? this.maxHeight,
    value: value ?? this.value,
    name: name ?? this.name,
    id: id ?? this.id,
    label: label ?? this.label,
    error: error ?? this.error,
    helperText: helperText ?? this.helperText,
    onChanged: onChanged ?? this.onChanged,
    fullWidth: fullWidth ?? this.fullWidth,
    styles: styles ?? this.styles,
    decoration: decoration ?? this.decoration,
  );
}