hasWidth method
Expects that width of SizedBox equals (==) value
.
Example usage:
spot<SizedBox>().existsOnce().hasWidth(10.5);
Implementation
WidgetMatcher<SizedBox> hasWidth(double? value) {
return hasDiagnosticProp<double>(
'width', (it) => value == null ? it.isNull() : it.equals(value));
}