getTargetRefreshRate method

  1. @SupportedPlatforms.new(platforms: [LinuxPlatform()])
Future<int> getTargetRefreshRate()

Gets the current target refresh rate for the WebView in Hz.

Officially Supported Platforms/Implementations:

  • Linux WPE WebKit

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

Implementation

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