FutureComboBox<T> constructor

const FutureComboBox<T>({
  1. Key? key,
  2. required Future<Set<T>> options,
  3. required Widget itemBuilder(
    1. T item
    ),
  4. required FutureOr<bool?> onSelected(
    1. T item
    ),
  5. Widget onError(
    1. Object error
    )?,
  6. String? label,
  7. Widget loaderBuilder()?,
  8. VitComboBoxStyle? style,
})

A combobox displaying a progress indicator while the future options is not completed.

Implementation

const FutureComboBox({
  super.key,
  required this.options,
  required this.itemBuilder,
  required this.onSelected,
  this.onError,
  this.label,
  this.loaderBuilder,
  this.style,
});