loadHtmlString method Null safety

Future<void> loadHtmlString(
  1. String html,
  2. {String? baseUrl}
)

Loads the supplied HTML string.

The baseUrl parameter is used when resolving relative URLs within the HTML string.

Implementation

Future<void> loadHtmlString(
  String html, {
  String? baseUrl,
}) {
  assert(html.isNotEmpty);
  return _webViewPlatformController.loadHtmlString(
    html,
    baseUrl: baseUrl,
  );
}