hasPhysics method

WidgetMatcher<GridView> hasPhysics(
  1. ScrollPhysics? value
)

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

Example usage:

spot<GridView>().existsOnce().hasPhysics(BouncingScrollPhysics());

Implementation

WidgetMatcher<GridView> hasPhysics(ScrollPhysics? value) {
  return hasDiagnosticProp<ScrollPhysics>(
      'physics', (it) => value == null ? it.isNull() : it.equals(value));
}