resizeWebview method

void resizeWebview(
  1. String placement,
  2. double height
)

passed to the webviewManager that get triggered by the ML when the webview is resized

Implementation

void resizeWebview(String placement, double height) {

  if (webViewHeight != height) {
    this.webViewHeight = height;
    // Trigger publisher resize event
    _taboolaClassicListener.onResize(placement, webViewHeight);
    // Trigger webview resize
    if (onWebviewResizeListener != null)
      onWebviewResizeListener!(placement, webViewHeight);
  }
}