hasSplashColor method

WidgetMatcher<IconButton> hasSplashColor(
  1. Color? value
)

Expects that splashColor of IconButton equals (==) value.

Example usage:

spot<IconButton>().existsOnce().hasSplashColor(Colors.red);

Implementation

WidgetMatcher<IconButton> hasSplashColor(Color? value) {
  return hasDiagnosticProp<Color>(
      'splashColor', (it) => value == null ? it.isNull() : it.equals(value));
}