opacity method

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

用Opacity包裹当前组件

Implementation

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