setHtml method

Future<void> setHtml(
  1. String html
)

Set HTML content

Implementation

Future<void> setHtml(String html) async {
  if (_webViewController != null) {
    await _webViewController!.runJavaScript('setContent(`$html`)');
  }
}