PrismDropdown<T> constructor

const PrismDropdown<T>({
  1. Key? key,
  2. required T? value,
  3. required List<PrismDropdownItem<T>> items,
  4. required ValueChanged<T?>? onChanged,
  5. String? label,
  6. String? hint,
  7. IconData? icon,
  8. String? validator(
    1. T?
    )?,
  9. bool enabled = true,
})

Creates a dropdown field.

Implementation

const PrismDropdown({
  super.key,
  required this.value,
  required this.items,
  required this.onChanged,
  this.label,
  this.hint,
  this.icon,
  this.validator,
  this.enabled = true,
});