hasScrollDirectionWhere method

WidgetMatcher<GridView> hasScrollDirectionWhere(
  1. MatchProp<Axis> match
)

Expects that scrollDirection of GridView matches the condition in match.

Example usage:

spot<GridView>().existsOnce().hasScrollDirectionWhere((it) => it.equals(Axis.values.first));

Implementation

WidgetMatcher<GridView> hasScrollDirectionWhere(MatchProp<Axis> match) {
  return hasDiagnosticProp<Axis>('scrollDirection', match);
}