withMargin method
Creates a WidgetSelector that finds all Container where margin equals (==) value
.
Example usage:
spot<Container>().withMargin(EdgeInsets.all(8.0)).existsOnce();
Implementation
@useResult
WidgetSelector<Container> withMargin(EdgeInsetsGeometry? value) {
return withDiagnosticProp<EdgeInsetsGeometry>(
'margin', (it) => value == null ? it.isNull() : it.equals(value));
}