DropdownField<T extends Object> constructor

const DropdownField<T extends Object>({
  1. Key? key,
  2. required Iterable<T> items,
  3. required ValueChanged<T> onChanged,
  4. String displayStringForItem(
    1. T
    ) = _defaultStringForItem,
  5. Widget? icon,
  6. bool isDense = true,
  7. bool isExpanded = true,
  8. String? labelText = '',
  9. Widget? prefixIcon,
  10. T? value,
})

Implementation

const DropdownField({
  super.key,
  required this.items,
  required this.onChanged,
  this.displayStringForItem = _defaultStringForItem,
  this.icon,
  this.isDense = true,
  this.isExpanded = true,
  this.labelText = '',
  this.prefixIcon,
  this.value,
});