hasAlignmentWhere method

WidgetMatcher<Wrap> hasAlignmentWhere(
  1. MatchProp<WrapAlignment> match
)

Expects that alignment of Wrap matches the condition in match.

Example usage:

spot<Wrap>().existsOnce().hasAlignmentWhere((it) => it.equals(WrapAlignment.values.first));

Implementation

WidgetMatcher<Wrap> hasAlignmentWhere(MatchProp<WrapAlignment> match) {
  return hasDiagnosticProp<WrapAlignment>('alignment', match);
}