opacity method

Widget opacity(
  1. double opacity
)

Changes the widget's opacity.

Implementation

Widget opacity(double opacity) {
  return Opacity(opacity: opacity, child: this);
}