copyWith method

NativeSelectProps copyWith({
  1. List<NativeSelectOptionProps>? options,
  2. String? value,
  3. String? placeholder,
  4. ComponentSize? size,
  5. bool? disabled,
  6. bool? required,
  7. String? name,
  8. String? id,
  9. String? label,
  10. String? error,
  11. bool? fullWidth,
  12. void onChange(
    1. 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,
  );
}