hasColorWhere method

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

Expects that color of IconButton matches the condition in match.

Example usage:

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

Implementation

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