withRenderObject method

Creates a WidgetSelector that finds all ConstrainedBox where renderObject equals (==) value.

Example usage:

spot<ConstrainedBox>().withRenderObject(RenderBox()).existsOnce();

Implementation

@useResult
WidgetSelector<ConstrainedBox> withRenderObject(RenderConstrainedBox? value) {
  return withDiagnosticProp<RenderConstrainedBox>(
      'renderObject', (it) => value == null ? it.isNull() : it.equals(value));
}