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