hasAlignment method

WidgetMatcher<Wrap> hasAlignment(
  1. WrapAlignment? value
)

Expects that alignment of Wrap equals (==) value.

Example usage:

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

Implementation

WidgetMatcher<Wrap> hasAlignment(WrapAlignment? value) {
  return hasDiagnosticProp<WrapAlignment>(
      'alignment', (it) => value == null ? it.isNull() : it.equals(value));
}