AdeptDropDown<T> constructor

AdeptDropDown<T>({
  1. Key? key,
  2. AdeptDropDownTheme? theme,
  3. String label = '',
  4. String hint = 'Select',
  5. required ValueNotifier<T?> valueNotifier,
  6. required List getList(
    1. String
    ),
  7. required String getText(
    1. T
    ),
  8. bool canSlct(
    1. T
    )?,
  9. dynamic onChanged(
    1. T
    )?,
  10. Widget itemWidget(
    1. T
    )?,
  11. bool isRequired = false,
})

Constructor allows you to define styling and value properties.

Implementation

AdeptDropDown(
    {super.key,
    AdeptDropDownTheme? theme,
    this.label = '',
    this.hint = 'Select',
    required this.valueNotifier,
    required this.getList,
    required this.getText,
    this.canSlct,
    this.onChanged,
    this.itemWidget,
    this.isRequired = false})
    : theme = theme ?? AdeptDropDownTheme();