AdeptMultiDropDown<T> constructor

AdeptMultiDropDown<T>({
  1. AdeptDropDownTheme? theme,
  2. String label = '',
  3. String hint = '',
  4. required List getList(
    1. String
    ),
  5. required String getText(
    1. T
    ),
  6. bool isOpen = false,
  7. dynamic onChanged(
    1. String
    )?,
  8. Widget itemWidget(
    1. T
    )?,
  9. BoxDecoration? slctItemDecoration,
  10. Color? slctItemIconColor,
  11. bool isRequired = false,
  12. required bool isSelected(
    1. T
    ),
  13. required void removeItem(
    1. T
    ),
  14. required void addItem(
    1. T
    ),
  15. Key? key,
})

Constructor allows you to define styling and value properties.

Implementation

AdeptMultiDropDown(
    {AdeptDropDownTheme? theme,
    this.label = '',
    this.hint = '',
    required this.getList,
    required this.getText,
    this.isOpen = false,
    this.onChanged,
    this.itemWidget,
    this.slctItemDecoration,
    this.slctItemIconColor,
    this.isRequired = false,
    required this.isSelected,
    required this.removeItem,
    required this.addItem,
    super.key})
    : theme = theme ?? AdeptDropDownTheme();