whereColor method
Creates a WidgetSelector that finds all Icon where color matches the condition.
Example usage:
spot<Icon>().whereColor((it) => it.equals(Colors.red)).existsOnce();
Implementation
@useResult
WidgetSelector<Icon> whereColor(MatchProp<Color> match) {
return withDiagnosticProp<Color>('color', match);
}