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