hasIconWhere method

WidgetMatcher<IconButton> hasIconWhere(
  1. MatchProp<Widget> match
)

Expects that icon of IconButton matches the condition in match.

Example usage:

spot<IconButton>().existsOnce().hasIconWhere((it) => it.equals(Container()));

Implementation

WidgetMatcher<IconButton> hasIconWhere(MatchProp<Widget> match) {
  return hasDiagnosticProp<Widget>('icon', match);
}