hasPaddingWhere method

WidgetMatcher<GridView> hasPaddingWhere(
  1. MatchProp<EdgeInsetsGeometry> match
)

Expects that padding of GridView matches the condition in match.

Example usage:

spot<GridView>().existsOnce().hasPaddingWhere((it) => it.equals(EdgeInsets.all(8.0)));

Implementation

WidgetMatcher<GridView> hasPaddingWhere(MatchProp<EdgeInsetsGeometry> match) {
  return hasDiagnosticProp<EdgeInsetsGeometry>('padding', match);
}