whereHighlightColor method

  1. @useResult
WidgetSelector<IconButton> whereHighlightColor(
  1. MatchProp<Color> match
)

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

Example usage:

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

Implementation

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