hasRenderObjectWhere method

WidgetMatcher<SizedBox> hasRenderObjectWhere(
  1. MatchProp<RenderConstrainedBox> match
)

Expects that renderObject of SizedBox matches the condition in match.

Example usage:

spot<SizedBox>().existsOnce().hasRenderObjectWhere((it) => it.equals(RenderBox()));

Implementation

WidgetMatcher<SizedBox> hasRenderObjectWhere(
    MatchProp<RenderConstrainedBox> match) {
  return hasDiagnosticProp<RenderConstrainedBox>('renderObject', match);
}