Printable.html constructor

const Printable.html(
  1. String html, {
  2. bool clean,
})

html rendered by the device's own HTML support. How much HTML the hardware understands is the device's business — keep it simple.

clean applies the HTML-safe fix for a raw till payload — the 
 carriage returns become line breaks; real HTML entities are left alone. Off by default.

Implementation

const factory Printable.html(String html, {bool clean}) = _HtmlPrintable;