hasAlignment method
Expects that alignment of Container equals (==) value
.
Example usage:
spot<Container>().existsOnce().hasAlignment(Alignment.center);
Implementation
WidgetMatcher<Container> hasAlignment(AlignmentGeometry? value) {
return hasDiagnosticProp<AlignmentGeometry>(
'alignment', (it) => value == null ? it.isNull() : it.equals(value));
}