setTargetRefreshRate method

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

Future<void> setTargetRefreshRate({required int rate}) =>
    platform.setTargetRefreshRate(rate: rate);