hasDirection method

WidgetMatcher<Row> hasDirection(
  1. Axis? value
)

Expects that direction of Row equals (==) value.

Example usage:

spot<Row>().existsOnce().hasDirection(Axis.values.first);

Implementation

WidgetMatcher<Row> hasDirection(Axis? value) {
  return hasDiagnosticProp<Axis>(
      'direction', (it) => value == null ? it.isNull() : it.equals(value));
}