hasColorWhere method
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);
}