hasAlignmentWhere method

WidgetMatcher<Container> hasAlignmentWhere(
  1. MatchProp<AlignmentGeometry> match
)

Expects that alignment of Container matches the condition in match.

Example usage:

spot<Container>().existsOnce().hasAlignmentWhere((it) => it.equals(Alignment.center));

Implementation

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