setMute method

Future<void> setMute(
  1. bool mute
)

设置静音

Enable or disable mute mode.

mute Whether to enable mute mode.

Implementation

Future<void> setMute(bool mute) async {
  await _aliPlayer.setMuted(mute);
  bool newValue = await _aliPlayer.isMuted();

  logi("setMute: $mute, real: $newValue");

  isMuteNotifier.value = newValue;
}