widgetIdFailureHint method
Implementation
String widgetIdFailureHint(String id, {int limit = 12}) {
final matches = closestVisibleWidgetIds(id, limit: 5);
final similar =
matches.isEmpty ? '' : ' Closest visible ids: ${matches.join(', ')}.';
return 'No visible widget matched this id.$similar '
'${visibleWidgetIdSummary(limit: limit)} '
'${_currentScreenSummary()} '
'Hint: check that "$id" is on the current screen/state, or add a '
'testId/id to the intended widget.';
}