whereAlignment method

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

Example usage:

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

Implementation

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