whereController method

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

Example usage:

spot<GridView>().whereController((it) => it.equals(ScrollController())).existsOnce();

Implementation

@useResult
WidgetSelector<GridView> whereController(MatchProp<ScrollController> match) {
  return withDiagnosticProp<ScrollController>('controller', match);
}