withHighlightColor method

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

Creates a WidgetSelector that finds all IconButton where highlightColor equals (==) value.

Example usage:

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

Implementation

@useResult
WidgetSelector<IconButton> withHighlightColor(Color? value) {
  return withDiagnosticProp<Color>('highlightColor',
      (it) => value == null ? it.isNull() : it.equals(value));
}