onTap property
final
A function called whenever the dropdown is tapped.
This will disable the functionality of the dropdown and the list will no longer open. You will neeed to manage the state yourself by changing value.
Implementation
final void Function()? onTap;