hasRenderObject method

Expects that renderObject of Semantics equals (==) value.

Example usage:

spot<Semantics>().existsOnce().hasRenderObject(RenderBox());

Implementation

WidgetMatcher<Semantics> hasRenderObject(RenderSemanticsAnnotations? value) {
  return hasDiagnosticProp<RenderSemanticsAnnotations>(
      'renderObject', (it) => value == null ? it.isNull() : it.equals(value));
}