CustomDropdown<T> constructor
const
CustomDropdown<T> ({
- Key? key,
- required List<
T> items, - required ValueChanged<
T?> onChanged, - required Widget itemBuilder(
- BuildContext,
- T
- String itemLabelBuilder(
- T
- T? value,
- String hint = "Select Item",
- double borderRadius = 12,
- Color borderColor = Colors.grey,
- 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,
});