setMuted method

Future<void> setMuted({
  1. required bool muted,
})

Sets the mute state of the webpage.

When muted is true, the webpage audio will be muted. When muted is false, the webpage audio will be unmuted.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • muted: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> setMuted({required bool muted}) =>
    platform.setMuted(muted: muted);