hasController method
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));
}