toggleMute method

Future<void> toggleMute()

To toggle between mute and unmute

Implementation

Future<void> toggleMute() async {
  await FlutterVolumeController.toggleMute();
  muteNotifier.value = !muteNotifier.value;
}