isInspectorPortalSurface function
Framework-created visual surfaces omitted by Flutter's summary tree.
Implementation
bool isInspectorPortalSurface(String signature) {
final normalized = signature.toLowerCase();
final dialogSurface =
normalized.contains('dialog') &&
!normalized.contains('route') &&
!normalized.contains('scope');
return normalized.contains('modalbarrier') ||
dialogSurface ||
normalized.contains('bottomsheet') ||
normalized.contains('popupmenu') ||
normalized.contains('dropdownroute') ||
normalized.contains('tooltip');
}