hasHighlightColorWhere method

WidgetMatcher<IconButton> hasHighlightColorWhere(
  1. MatchProp<Color> match
)

Expects that highlightColor of IconButton matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<IconButton> hasHighlightColorWhere(MatchProp<Color> match) {
  return hasDiagnosticProp<Color>('highlightColor', match);
}