isPopupSubtree static method

bool isPopupSubtree(
  1. BuildContext context
)

Screen inference walks widgets, including popup contents which may have names such as FilterScreen. Stop at each popup's public subtree boundary.

Implementation

static bool isPopupSubtree(BuildContext context) =>
    _routes.any((ref) => identical(ref.target?.subtreeContext, context));