withAlignment method

Creates a WidgetSelector that finds all Container where alignment equals (==) value.

Example usage:

spot<Container>().withAlignment(Alignment.center).existsOnce();

Implementation

@useResult
WidgetSelector<Container> withAlignment(AlignmentGeometry? value) {
  return withDiagnosticProp<AlignmentGeometry>(
      'alignment', (it) => value == null ? it.isNull() : it.equals(value));
}