hasCrossAxisAlignment method

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

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

Example usage:

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

Implementation

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