hasMargin method
Expects that margin of Container equals (==) value
.
Example usage:
spot<Container>().existsOnce().hasMargin(EdgeInsets.all(8.0));
Implementation
WidgetMatcher<Container> hasMargin(EdgeInsetsGeometry? value) {
return hasDiagnosticProp<EdgeInsetsGeometry>(
'margin', (it) => value == null ? it.isNull() : it.equals(value));
}