Solution for multiple toasts in sequence with optional grouping

I’ve just found an elegant solution to display multiple toasts that appear in sequence and do not overlap each other. And with optional grouping of toasts within a short period of time.

See https://stackblitz.com/edit/ionic-5-sequential-toasts
(Ionic 5 + Angular)

Cool job! Thx for sharing.

some suggestions/ideas

Why not use ToastOptions instead of your own interface? So one can control everything? Obviously, taking only one version for the options?
Would it work to return the toast and let the sender susbcribe to it? So you can handle onDidDismisse as consumer? This way you also dont need to subscribe in the service, making it much leaner

Too bad it is not that easy to stack toast separately in separate UI elements.