coverHtml property

String get coverHtml

富文本转换

Implementation

String get coverHtml {
  var html = """
  <html>
          <head>
            <meta charset="UTF-8">
          </head>
          <body  onload="SendHight()">
            $this
          </body>
      </html>
  """;
  String initialUrl = "data:text/html;charset=utf-8;base64,${base64Encode(const Utf8Encoder().convert(html))}";
  return initialUrl;
}