toHtml method

  1. @override
String toHtml()
override

Render to HTML (for emails, web)

Implementation

@override
String toHtml() {
  final style = _buildStyle();
  final tag = _getHtmlTag();
  // Include ID attribute
  return '<$tag id="$id" style="$style">${_escapeHtml(data)}</$tag>';
}