withImage method
Creates a WidgetSelector that finds all Image where image equals (==) value
.
Example usage:
spot<Image>().withImage(NetworkImage('https://example.com/image.png')).existsOnce();
Implementation
@useResult
WidgetSelector<Image> withImage(ImageProvider<Object>? value) {
return withDiagnosticProp<ImageProvider<Object>>(
'image', (it) => value == null ? it.isNull() : it.equals(value));
}