Selector<T> constructor

const Selector<T>({
  1. required List<SelectorOption<T>> options,
  2. T? value,
  3. void onChanged(
    1. T value
    )?,
  4. String placeholder = 'Select...',
  5. bool disabled = false,
  6. bool clearable = false,
  7. bool searchable = false,
  8. String? label,
  9. String? error,
  10. Key? key,
})

Implementation

const Selector({
  required this.options,
  this.value,
  this.onChanged,
  this.placeholder = 'Select...',
  this.disabled = false,
  this.clearable = false,
  this.searchable = false,
  this.label,
  this.error,
  super.key,
});