SmartDropDown<T> constructor

SmartDropDown<T>({
  1. required List<SmartDropdownMenuItem> items,
  2. required Function onChanged,
  3. String hintText = "",
  4. double borderRadius = 0,
  5. double borderWidth = 1,
  6. Color borderColor = Colors.black,
  7. Color expandedColor = Colors.black,
  8. double maxListHeight = 100,
  9. int defaultSelectedIndex = -1,
  10. Key? key,
  11. 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);