hasWidthWhere method

WidgetMatcher<SizedBox> hasWidthWhere(
  1. MatchProp<double> match
)

Expects that width of SizedBox matches the condition in match.

Example usage:

spot<SizedBox>().existsOnce().hasWidthWhere((it) => it.isGreaterThan(10.5));

Implementation

WidgetMatcher<SizedBox> hasWidthWhere(MatchProp<double> match) {
  return hasDiagnosticProp<double>('width', match);
}