closeAllDialogs
closeAllDialogs action dismisses or closes all open modal dialogs within the app, allowing developers to easily manage and reset the dialog stack, ensuring a clutter-free and user-friendly interface for a seamless app experience.
Example
MyStartingDialog:
body:
Column:
styles:
gap: 10
children:
- Text:
text: Welcome to Ensemble
styles:
fontSize: 16
fontWeight: bold
- Text:
text: This dialog pops up when the user first visits the page.
- Button:
label: Close dialog
onTap: closeAllDialogs
The complete example here (opens in a new tab) demonstrates its usage along with showDialog