opacity method

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

透明度

Implementation

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