DropdownWidget<T> constructor

DropdownWidget<T>({
  1. Key? key,
  2. T? dropdownValue,
  3. required List<T> itemList,
  4. required void onPressed(
    1. T?
    ),
  5. bool showSelected = false,
  6. required String hintText,
  7. T? initialSelectedValue,
  8. Widget icon = const Icon(Icons.more_vert),
  9. bool isIconButton = false,
  10. String itemToString(
    1. T
    )?,
})

Implementation

DropdownWidget({
  super.key,
  this.dropdownValue,
  required this.itemList,
  required this.onPressed,
  this.showSelected = false,
  required this.hintText,
  this.initialSelectedValue,
  this.icon = const Icon(
    Icons.more_vert,
  ),
  this.isIconButton = false,
  this.itemToString,
});