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