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