hasPhysicsWhere method

WidgetMatcher<GridView> hasPhysicsWhere(
  1. MatchProp<ScrollPhysics> match
)

Expects that physics of GridView matches the condition in match.

Example usage:

spot<GridView>().existsOnce().hasPhysicsWhere((it) => it.equals(BouncingScrollPhysics()));

Implementation

WidgetMatcher<GridView> hasPhysicsWhere(MatchProp<ScrollPhysics> match) {
  return hasDiagnosticProp<ScrollPhysics>('physics', match);
}