whereColor method

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

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

Example usage:

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

Implementation

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