whereAlignment method

Creates a WidgetSelector that finds all Container where alignment matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<Container> whereAlignment(MatchProp<AlignmentGeometry> match) {
  return withDiagnosticProp<AlignmentGeometry>('alignment', match);
}