withOpacity method

  1. @useResult
WidgetSelector<Image> withOpacity(
  1. Animation<double>? value
)

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