hideAppDialog method

Future<void> hideAppDialog({
  1. bool force = false,
})

Implementation

Future<void> hideAppDialog({bool force = false}) async {
  try {
    if (_context != null) {
      if (Navigator.canPop(_context!)) {
        Navigator.pop(_context!);
      }
    }
  } catch (error) {}
  _forceShowDialog = !force;
}