opacity method

Widget opacity({
  1. required double opacity,
  2. Key? key,
  3. bool alwaysIncludeSemantics = false,
})

Controls the opacity of it's child.

Implementation

Widget opacity({
  required double opacity,
  Key? key,
  bool alwaysIncludeSemantics = false,
}) {
  return Opacity(
    key: key,
    opacity: opacity,
    alwaysIncludeSemantics: alwaysIncludeSemantics,
    child: this,
  );
}