whereConstraints method
Creates a WidgetSelector that finds all ConstrainedBox where constraints matches the condition.
Example usage:
spot<ConstrainedBox>().whereConstraints((it) => it.equals(BoxConstraints.tight(Size(100, 100)))).existsOnce();
Implementation
@useResult
WidgetSelector<ConstrainedBox> whereConstraints(
MatchProp<BoxConstraints> match) {
return withDiagnosticProp<BoxConstraints>('constraints', match);
}