ArcaneSelect constructor

const ArcaneSelect({
  1. required List<ArcaneSelectOption> options,
  2. String? value,
  3. String? placeholder,
  4. ComponentSize size = ComponentSize.md,
  5. bool disabled = false,
  6. bool required = false,
  7. String? name,
  8. String? id,
  9. String? label,
  10. String? error,
  11. void onChange(
    1. String
    )?,
  12. void onInput(
    1. String
    )?,
  13. void onSelect(
    1. String
    )?,
  14. bool fullWidth = false,
  15. Key? key,
})

Implementation

const ArcaneSelect({
  required this.options,
  this.value,
  this.placeholder,
  this.size = ComponentSize.md,
  this.disabled = false,
  this.required = false,
  this.name,
  this.id,
  this.label,
  this.error,
  void Function(String)? onChange,
  void Function(String)? onInput,
  void Function(String)? onSelect,
  this.fullWidth = false,
  super.key,
}) : _onChange = onChange ?? onInput ?? onSelect;