isPopupOnTop method

bool isPopupOnTop()

Implementation

bool isPopupOnTop() {
  if (_topRoute != null) {
    return (_topRoute is DialogRoute || _topRoute is ModalBottomSheetRoute) &&
        _topRoute!.isActive &&
        _topRoute!.isCurrent;
  }
  return false;
}