Dropdown<T> constructor

const Dropdown<T>({
  1. Key? key,
  2. required List<DropdownItem<T>> items,
  3. T? value,
  4. String? label,
  5. String? hint,
  6. IconData? icon,
  7. String? validator(
    1. T?
    )?,
  8. ValueChanged<T?>? onChanged,
  9. bool enabled = true,
  10. bool isExpanded = true,
  11. ValueChanged<T?>? onFieldSaved,
  12. double borderRadius = AppRadius.medium,
  13. AutovalidateMode? autovalidateMode,
  14. Color? dropdownColor,
})

Implementation

const Dropdown({
  super.key,
  required this.items,
  this.value,
  this.label,
  this.hint,
  this.icon,
  this.validator,
  this.onChanged,
  this.enabled = true,
  this.isExpanded = true,
  this.onFieldSaved,
  this.borderRadius = AppRadius.medium,
  this.autovalidateMode,
  this.dropdownColor,
});