hasSplashColorWhere method

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

Expects that splashColor of IconButton matches the condition in match.

Example usage:

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

Implementation

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