hasOpacity method
Expects that opacity of Opacity equals (==) value
.
Example usage:
spot<Opacity>().existsOnce().hasOpacity(10.5);
Implementation
WidgetMatcher<Opacity> hasOpacity(double? value) {
return hasDiagnosticProp<double>(
'opacity', (it) => value == null ? it.isNull() : it.equals(value));
}