whereHoverColor method

  1. @useResult
WidgetSelector<IconButton> whereHoverColor(
  1. MatchProp<Color> match
)

Creates a WidgetSelector that finds all IconButton where hoverColor matches the condition.

Example usage:

spot<IconButton>().whereHoverColor((it) => it.equals(Colors.red)).existsOnce();

Implementation

@useResult
WidgetSelector<IconButton> whereHoverColor(MatchProp<Color> match) {
  return withDiagnosticProp<Color>('hoverColor', match);
}