dismiss method

void dismiss()

Implementation

void dismiss() {
  if (_isShowing) {
    try {
      WidgetsBinding.instance.addPostFrameCallback((_) {
        _isShowing = false;
        if (Navigator.of(_dismissingContext).canPop()) {
          Navigator.of(_dismissingContext).pop();
        }
      });
    } catch (_) {}
  }
}