hasOpacity method

WidgetMatcher<Opacity> hasOpacity(
  1. double? value
)

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));
}