hasConstraintsWhere method

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

Expects that constraints of ConstrainedBox matches the condition in match.

Example usage:

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

Implementation

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