Hey, I have a toast with shown closeButton and I would need to detect, what triggered the dismiss
There are several options:
Timeout after duration
A toast.dismiss();
Or a click on the closeButton
I want a special handling only when the closeButton was clicked, so it would be great, if you would change the onDidDismiss to something like toast.onDidDismiss((event: Event) => {...}); with the triggered event.