onDropdownChanged property
Allows you to intercept any dropdown changes. The function passes the DropdownType enum, which tells you which dropdown was changed, the changed value to indicate what the dropdown was changed to, and the function to update the changed value (in case you decide to handle the dropdown change yourself). The function is null in some cases because the dropdown does not update its value.
Return a bool to tell the plugin if it should continue with its own handler or if you want to handle the dropdown change by yourself. (true = continue with internal handler, false = do not use internal handler)
If no interceptor is set, the plugin uses the internal handler.
Implementation
final FutureOr<bool> Function(DropdownType, dynamic, void Function(dynamic)?)? onDropdownChanged;