withRenderObject method
Creates a WidgetSelector that finds all Opacity where renderObject equals (==) value
.
Example usage:
spot<Opacity>().withRenderObject(RenderBox()).existsOnce();
Implementation
@useResult
WidgetSelector<Opacity> withRenderObject(RenderOpacity? value) {
return withDiagnosticProp<RenderOpacity>(
'renderObject', (it) => value == null ? it.isNull() : it.equals(value));
}