hasPrimary method
Expects that primary of GridView equals (==) value
.
Example usage:
spot<GridView>().existsOnce().hasPrimary(true);
Implementation
WidgetMatcher<GridView> hasPrimary(bool? value) {
return hasDiagnosticProp<bool>(
'primary', (it) => value == null ? it.isNull() : it.equals(value));
}