SmartDropDown<T> constructor
SmartDropDown<T> ({
- required List<
SmartDropdownMenuItem> items, - required Function onChanged,
- String hintText = "",
- double borderRadius = 0,
- double borderWidth = 1,
- Color borderColor = Colors.black,
- Color expandedColor = Colors.black,
- double maxListHeight = 100,
- int defaultSelectedIndex = -1,
- Key? key,
- bool enabled = true,
Implementation
SmartDropDown(
{required this.items,
required this.onChanged,
this.hintText = "",
this.borderRadius = 0,
this.borderWidth = 1,
this.borderColor = Colors.black,
this.expandedColor = Colors.black,
this.maxListHeight = 100,
this.defaultSelectedIndex = -1,
this.key,
this.enabled = true})
: super(key: key);