setMute method

Future<void> setMute(
  1. StreamType streamType,
  2. bool isMuted
)

Sets mute state for a stream type. The mute state will apply to all audio devices with the specified audio stream type. |streamType|: Stream type for which mute state should be set. |isMuted|: New mute value.

Implementation

Future<void> setMute(
  StreamType streamType,
  bool isMuted,
) async {
  await promiseToFuture<void>($js.chrome.audio.setMute(
    streamType.toJS,
    isMuted,
  ));
}