hasSplashColor method

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

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

Example usage:

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

Implementation

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