ArcaneSelector<T> constructor

const ArcaneSelector<T>({
  1. required List<ArcaneSelectorOption<T>> options,
  2. T? value,
  3. List<T>? values,
  4. void onChanged(
    1. T value
    )?,
  5. void onMultiChanged(
    1. List<T> values
    )?,
  6. String placeholder = 'Select...',
  7. bool disabled = false,
  8. bool clearable = false,
  9. bool searchable = false,
  10. bool multiSelect = false,
  11. String? label,
  12. String? helperText,
  13. String? error,
  14. SelectorSize size = SelectorSize.md,
  15. bool required = false,
  16. String? maxDropdownHeight,
  17. bool loading = false,
  18. String loadingText = 'Loading...',
  19. String emptyMessage = 'No options found',
  20. String searchPlaceholder = 'Search...',
  21. DropdownDirection dropdownDirection = DropdownDirection.down,
  22. bool closeOnSelect = true,
  23. bool showSelectedCount = true,
  24. Component? prefix,
  25. bool filterFn(
    1. ArcaneSelectorOption<T> option,
    2. String query
    )?,
  26. int? maxSelections,
  27. bool showCheckboxes = true,
  28. Key? key,
})

Implementation

const ArcaneSelector({
  required this.options,
  this.value,
  this.values,
  this.onChanged,
  this.onMultiChanged,
  this.placeholder = 'Select...',
  this.disabled = false,
  this.clearable = false,
  this.searchable = false,
  this.multiSelect = false,
  this.label,
  this.helperText,
  this.error,
  this.size = SelectorSize.md,
  this.required = false,
  this.maxDropdownHeight,
  this.loading = false,
  this.loadingText = 'Loading...',
  this.emptyMessage = 'No options found',
  this.searchPlaceholder = 'Search...',
  this.dropdownDirection = DropdownDirection.down,
  this.closeOnSelect = true,
  this.showSelectedCount = true,
  this.prefix,
  this.filterFn,
  this.maxSelections,
  this.showCheckboxes = true,
  super.key,
});