setMute method

Future<void> setMute(
  1. bool mute
)

Sets the mute state for animation playback.

Parameters:

  • mute: true to mute audio, false to enable audio

Example:

await controller.setMute(true);  // Mute audio
await controller.setMute(false); // Enable audio

Implementation

Future<void> setMute(bool mute) async {
  await __channel.invokeMethod('setMute', {'mute': mute});
}