withAlignment method

  1. @useResult
WidgetSelector<Wrap> withAlignment(
  1. WrapAlignment? value
)

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

Example usage:

spot<Wrap>().withAlignment(WrapAlignment.values.first).existsOnce();

Implementation

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