whereImage method

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

Example usage:

spot<Image>().whereImage((it) => it.equals(NetworkImage('https://example.com/image.png'))).existsOnce();

Implementation

@useResult
WidgetSelector<Image> whereImage(MatchProp<ImageProvider<Object>> match) {
  return withDiagnosticProp<ImageProvider<Object>>('image', match);
}