onTap property Null safety
final
Called when the dropdown button is tapped.
This is distinct from onChanged, which is called when the user selects an item from the dropdown.
The callback will not be invoked if the dropdown button is disabled.
Implementation
final VoidCallback? onTap;