isDialogShowing function
Returns whether a dialog is currently showing in the given context.
Useful for preventing duplicate dialogs.
Implementation
bool isDialogShowing(BuildContext context) => ModalRoute.of(context)?.isCurrent != true;
Returns whether a dialog is currently showing in the given context.
Useful for preventing duplicate dialogs.
bool isDialogShowing(BuildContext context) => ModalRoute.of(context)?.isCurrent != true;