hasHoverColor method

WidgetMatcher<IconButton> hasHoverColor(
  1. Color? value
)

Expects that hoverColor of IconButton equals (==) value.

Example usage:

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

Implementation

WidgetMatcher<IconButton> hasHoverColor(Color? value) {
  return hasDiagnosticProp<Color>(
      'hoverColor', (it) => value == null ? it.isNull() : it.equals(value));
}