wherePadding method

Creates a WidgetSelector that finds all IconButton where padding matches the condition.

Example usage:

spot<IconButton>().wherePadding((it) => it.equals(EdgeInsets.all(8.0))).existsOnce();

Implementation

@useResult
WidgetSelector<IconButton> wherePadding(MatchProp<EdgeInsetsGeometry> match) {
  return withDiagnosticProp<EdgeInsetsGeometry>('padding', match);
}