loadHtmlString method

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 platform.loadHtmlString(html, baseUrl: baseUrl);
}