hideDialog method

void hideDialog(
  1. BuildContext context
)

Implementation

void hideDialog(BuildContext context) {
  Navigator.of(
    context,
    rootNavigator: true,
  ).popUntil(
    (route) => route is! PopupRoute,
  );
}