hasController method

WidgetMatcher<GridView> hasController(
  1. ScrollController? value
)

Expects that controller of GridView equals (==) value.

Example usage:

spot<GridView>().existsOnce().hasController(ScrollController());

Implementation

WidgetMatcher<GridView> hasController(ScrollController? value) {
  return hasDiagnosticProp<ScrollController>(
      'controller', (it) => value == null ? it.isNull() : it.equals(value));
}