hasConstraints method
Expects that constraints of Container equals (==) value
.
Example usage:
spot<Container>().existsOnce().hasConstraints(BoxConstraints.tight(Size(100, 100)));
Implementation
WidgetMatcher<Container> hasConstraints(BoxConstraints? value) {
return hasDiagnosticProp<BoxConstraints>(
'constraints', (it) => value == null ? it.isNull() : it.equals(value));
}