hasCrossAxisAlignmentWhere method

WidgetMatcher<Wrap> hasCrossAxisAlignmentWhere(
  1. MatchProp<WrapCrossAlignment> match
)

Expects that crossAxisAlignment of Wrap matches the condition in match.

Example usage:

spot<Wrap>().existsOnce().hasCrossAxisAlignmentWhere((it) => it.equals(WrapCrossAlignment.values.first));

Implementation

WidgetMatcher<Wrap> hasCrossAxisAlignmentWhere(
    MatchProp<WrapCrossAlignment> match) {
  return hasDiagnosticProp<WrapCrossAlignment>('crossAxisAlignment', match);
}