Inside an app we have various dialogs. In one case for example:
The user clicks a button and gets a "loading dialog". The client gets a news notification as a "notification dialog". The user gets the loaded data and and gets forwarded to a page showing the data.
So the "history"/"hierarchie" should be ["loading dialog", "notification dialog", "data page"]
When the data is loaded we want to remove the "loading dialog" which is in the history below the other dialog and below the data page.
How can I tell a specific dialog in flutter to close?
Currently the page showing the data has a named route and the dialogs are opened via showDialog(...)