hasPrimary method

WidgetMatcher<GridView> hasPrimary(
  1. bool? value
)

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