whereIcon method
Creates a WidgetSelector that finds all Icon where icon matches the condition.
Example usage:
spot<Icon>().whereIcon((it) => it.equals(Icons.home)).existsOnce();
Implementation
@useResult
WidgetSelector<Icon> whereIcon(MatchProp<IconData> match) {
return withDiagnosticProp<IconData>('icon', match);
}