closeAllDialogs method

void closeAllDialogs({
  1. String? id,
})

Closes all open dialogs.

Parameters:

  • id: The key associated with the delegate to use for closing dialogs. If null, the root delegate will be used.

Implementation

void closeAllDialogs({
  String? id,
}) {
  while (isDialogOpen!) {
    closeOverlay(id: id);
  }
}