whereScrollDirection method

  1. @useResult
WidgetSelector<GridView> whereScrollDirection(
  1. MatchProp<Axis> match
)

Creates a WidgetSelector that finds all GridView where scrollDirection matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<GridView> whereScrollDirection(MatchProp<Axis> match) {
  return withDiagnosticProp<Axis>('scrollDirection', match);
}