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