whereColor method

  1. @useResult
WidgetSelector<Icon> whereColor(
  1. MatchProp<Color> match
)

Creates a WidgetSelector that finds all Icon where color matches the condition.

Example usage:

spot<Icon>().whereColor((it) => it.equals(Colors.red)).existsOnce();

Implementation

@useResult
WidgetSelector<Icon> whereColor(MatchProp<Color> match) {
  return withDiagnosticProp<Color>('color', match);
}