withHoverColor method
Creates a WidgetSelector that finds all IconButton where hoverColor equals (==) value
.
Example usage:
spot<IconButton>().withHoverColor(Colors.red).existsOnce();
Implementation
@useResult
WidgetSelector<IconButton> withHoverColor(Color? value) {
return withDiagnosticProp<Color>(
'hoverColor', (it) => value == null ? it.isNull() : it.equals(value));
}