hasConstraintsWhere method

WidgetMatcher<Container> hasConstraintsWhere(
  1. MatchProp<BoxConstraints> match
)

Expects that constraints of Container matches the condition in match.

Example usage:

spot<Container>().existsOnce().hasConstraintsWhere((it) => it.equals(BoxConstraints.tight(Size(100, 100))));

Implementation

WidgetMatcher<Container> hasConstraintsWhere(
    MatchProp<BoxConstraints> match) {
  return hasDiagnosticProp<BoxConstraints>('constraints', match);
}