hasSplashColorWhere method

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

Expects that splashColor of FloatingActionButton matches the condition in match.

Example usage:

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

Implementation

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