whereColor method

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

Example usage:

spot<IconButton>().whereColor((it) => it.equals(Colors.red)).existsOnce();

Implementation

@useResult
WidgetSelector<IconButton> whereColor(MatchProp<Color> match) {
  return withDiagnosticProp<Color>('color', match);
}