debugResolvePortal static method

String? debugResolvePortal(
  1. BuildContext context,
  2. List<PortalLabel> portalCandidateLabels
)

See which Portal will indeed be used given the configuration Visible only for debugging purpose.

Implementation

static String? debugResolvePortal(
  BuildContext context,
  List<PortalLabel<dynamic>> portalCandidateLabels,
) {
  final scope = PortalLinkScope.of(context, portalCandidateLabels);
  if (scope == null) {
    return null;
  }
  return '(debugName: ${scope.debugName}, portalLabel: ${scope.portalLabels})';
}