hasIconWhere method
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);
}