hasCrossAxisAlignment method

WidgetMatcher<Row> hasCrossAxisAlignment(
  1. CrossAxisAlignment? value
)

Expects that crossAxisAlignment of Row equals (==) value.

Example usage:

spot<Row>().existsOnce().hasCrossAxisAlignment(CrossAxisAlignment.values.first);

Implementation

WidgetMatcher<Row> hasCrossAxisAlignment(CrossAxisAlignment? value) {
  return hasDiagnosticProp<CrossAxisAlignment>('crossAxisAlignment',
      (it) => value == null ? it.isNull() : it.equals(value));
}