setVisible method

Future<void> setVisible({
  1. required bool visible,
})

Sets the visibility state of the WebView. When set to false, the WebView is marked as hidden which may reduce resource usage.

Officially Supported Platforms/Implementations:

  • Linux WPE WebKit

Parameters - Officially Supported Platforms/Implementations:

  • visible: all platforms

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

Implementation

Future<void> setVisible({required bool visible}) =>
    platform.setVisible(visible: visible);