opacity method
用Opacity包裹当前组件
Implementation
Opacity opacity(double opacity,
{Key? key, bool alwaysIncludeSemantics = false}) {
return Opacity(
key: key,
opacity: opacity,
alwaysIncludeSemantics: alwaysIncludeSemantics,
child: this,
);
}