dropdownItemFn property

ListTile Function(String item, int position, bool focused, bool selected, dynamic onTap()) dropdownItemFn
final

Build dropdown Items, it get called for all dropdown items item = dynamic value List item to build dropdown Listtile lasSelectedItem = null | dynamic value last selected item, it gives user chance to highlight selected item position = 0,1,2... Index of the list item focused = true | false is the item if focused, it gives user chance to highlight focused item onTap = Function *important! just assign this function to Listtile.onTap = onTap, incase you missed this, the click event if the dropdown item will not work.

Implementation

final ListTile Function(
  String item,
  int position,
  bool focused,
  bool selected,
  Function() onTap,
) dropdownItemFn;