withHoverColor method

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

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