ArcaneSelector<T> constructor
const
ArcaneSelector<T> ({
- required List<
ArcaneSelectorOption< options,T> > - T? value,
- List<
T> ? values, - void onChanged(
- T value
- void onMultiChanged(
- List<
T> values
- List<
- String placeholder = 'Select...',
- bool disabled = false,
- bool clearable = false,
- bool searchable = false,
- bool multiSelect = false,
- String? label,
- String? helperText,
- String? error,
- SelectorSize size = SelectorSize.md,
- bool required = false,
- String? maxDropdownHeight,
- bool loading = false,
- String loadingText = 'Loading...',
- String emptyMessage = 'No options found',
- String searchPlaceholder = 'Search...',
- DropdownDirection dropdownDirection = DropdownDirection.down,
- bool closeOnSelect = true,
- bool showSelectedCount = true,
- Component? prefix,
- bool filterFn(
- ArcaneSelectorOption<
T> option, - String query
- ArcaneSelectorOption<
- int? maxSelections,
- bool showCheckboxes = true,
- 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,
});