withColor method
Creates a WidgetSelector that finds all Image where color equals (==) value
.
Example usage:
spot<Image>().withColor(Colors.red).existsOnce();
Implementation
@useResult
WidgetSelector<Image> withColor(Color? value) {
return withDiagnosticProp<Color>(
'color', (it) => value == null ? it.isNull() : it.equals(value));
}