CustomDropdown<T> constructor

const CustomDropdown<T>({
  1. Key? key,
  2. required List<T> items,
  3. required ValueChanged<T?> onChanged,
  4. required Widget itemBuilder(
    1. BuildContext,
    2. T
    ),
  5. String itemLabelBuilder(
    1. T
    )?,
  6. T? value,
  7. String hint = "Select Item",
  8. double borderRadius = 12,
  9. Color borderColor = Colors.grey,
  10. IconData icon = Icons.arrow_drop_down,
})

Implementation

const CustomDropdown({
  super.key,
  required this.items,
  required this.onChanged,
  required this.itemBuilder,
  this.itemLabelBuilder,
  this.value,
  this.hint = "Select Item",
  this.borderRadius = 12,
  this.borderColor = Colors.grey,
  this.icon = Icons.arrow_drop_down,
});