hasControllerWhere method

WidgetMatcher<GridView> hasControllerWhere(
  1. MatchProp<ScrollController> match
)

Expects that controller of GridView matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<GridView> hasControllerWhere(
    MatchProp<ScrollController> match) {
  return hasDiagnosticProp<ScrollController>('controller', match);
}