withAlignment method
Creates a WidgetSelector that finds all Image where alignment equals (==) value
.
Example usage:
spot<Image>().withAlignment(Alignment.center).existsOnce();
Implementation
@useResult
WidgetSelector<Image> withAlignment(AlignmentGeometry? value) {
return withDiagnosticProp<AlignmentGeometry>(
'alignment', (it) => value == null ? it.isNull() : it.equals(value));
}