postVisualStateCallback method

Future<void> postVisualStateCallback({
  1. int? requestId,
})

Requests a callback when this WebView is ready to be drawn.

When omitted, Android also posts a visual-state callback after each finished page load and fires PlatformWebViewCreationParams.onVisualStateReady.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • requestId: all platforms

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

Implementation

Future<void> postVisualStateCallback({int? requestId}) =>
    platform.postVisualStateCallback(requestId: requestId);