copyWith method
NativeSelectProps
copyWith(
{ - List<NativeSelectOptionProps>? options,
- String? value,
- String? placeholder,
- ComponentSize? size,
- bool? disabled,
- bool? required,
- String? name,
- String? id,
- String? label,
- String? error,
- bool? fullWidth,
- void onChange(
- String
)?,
})
Implementation
NativeSelectProps copyWith({
List<NativeSelectOptionProps>? options,
String? value,
String? placeholder,
ComponentSize? size,
bool? disabled,
bool? required,
String? name,
String? id,
String? label,
String? error,
bool? fullWidth,
void Function(String)? onChange,
}) {
return NativeSelectProps(
options: options ?? this.options,
value: value ?? this.value,
placeholder: placeholder ?? this.placeholder,
size: size ?? this.size,
disabled: disabled ?? this.disabled,
required: required ?? this.required,
name: name ?? this.name,
id: id ?? this.id,
label: label ?? this.label,
error: error ?? this.error,
fullWidth: fullWidth ?? this.fullWidth,
onChange: onChange ?? this.onChange,
);
}