changeOpacity method

void changeOpacity(
  1. double opacity
)

修改透明度

Implementation

void changeOpacity(double opacity) {
  assert(opacity <= 1);
  assert(opacity >= 0);
  FlutterDanmakuConfig.opacity = opacity;
}