parent?.toDiagnosticsNode(name:'which was added as a child of',style:DiagnosticsTreeStyle.errorProperty)??ErrorDescription('which was added as the root SemanticsNode'),
];
}
throwFlutterError.fromParts(<DiagnosticsNode>[
ErrorSummary('Invisible SemanticsNodes should not be added to the tree.'),
ErrorDescription('The following invisible SemanticsNodes were added to the tree:'),
...invisibleNodes.expand(nodeToMessage),
ErrorHint(
'An invisible SemanticsNode is one whose rect is not on screen hence not reachable for users, '
'and its semantic information is not merged into a visible parent.'
),
ErrorHint(
'An invisible SemantiscNode makes the accessibility experience confusing, '
'as it does not provide any visual indication when the user selects it '
'via accessibility technologies.'
),
ErrorHint(
'Consider removing the above invisible SemanticsNodes if they were added by your '
'RenderObject.assembleSemanticsNode implementation, or filing a bug on GitHub:\n'
'An invisible SemanticsNode is one whose rect is not on screen hence not reachable for users, and its semantic information is not merged into a visible parent.\n'
'An invisible SemantiscNode makes the accessibility experience confusing, as it does not provide any visual indication when the user selects it via accessibility technologies.\n'
'Consider removing the above invisible SemanticsNodes if they were added by your RenderObject.assembleSemanticsNode implementation, or filing a bug on GitHub:\n'
'An invisible SemanticsNode is one whose rect is not on screen hence not reachable for users, and its semantic information is not merged into a visible parent.\n'
'An invisible SemantiscNode makes the accessibility experience confusing, as it does not provide any visual indication when the user selects it via accessibility technologies.\n'
'Consider removing the above invisible SemanticsNodes if they were added by your RenderObject.assembleSemanticsNode implementation, or filing a bug on GitHub:\n'