yDismissDialog function

void yDismissDialog(
  1. BuildContext? dialogContext
)

Implementation

void yDismissDialog(BuildContext? dialogContext) {
  if (dialogContext != null) {
    var state = Navigator.of(dialogContext);
    if (state.canPop()) state.pop();
  }
}