withSplashColor method

  1. @useResult
WidgetSelector<IconButton> withSplashColor(
  1. Color? value
)

Creates a WidgetSelector that finds all IconButton where splashColor equals (==) value.

Example usage:

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

Implementation

@useResult
WidgetSelector<IconButton> withSplashColor(Color? value) {
  return withDiagnosticProp<Color>(
      'splashColor', (it) => value == null ? it.isNull() : it.equals(value));
}