copyWith method
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 onChanged()?,
- bool? fullWidth,
- ArcaneStyleData? styles,
- 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,
);
}