setTargetRefreshRate method

  1. @SupportedPlatforms.new(platforms: [LinuxPlatform()])
Future<void> setTargetRefreshRate({
  1. required int rate,
})

Sets the target refresh rate for the WebView in Hz. A value of 0 means the default rate.

Officially Supported Platforms/Implementations:

  • Linux WPE WebKit

Parameters - Officially Supported Platforms/Implementations:

  • rate: all platforms

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

Implementation

@SupportedPlatforms(platforms: [LinuxPlatform()])
Future<void> setTargetRefreshRate({required int rate}) {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.setTargetRefreshRate.name} is not implemented on the current platform',
  );
}