Wraps the widget in an Opacity widget with the given opacity.
The opacity argument must be between 0.0 and 1.0 and must not be null.
Opacity opacity(double opacity) => Opacity(opacity: opacity, child: this);