withSplashColor method
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));
}