toHtml method

  1. @override
String toHtml()
override

Render to HTML (for emails, web)

Implementation

@override
String toHtml() {
  final style = _buildBoxStyle();
  final attributes = _buildHtmlAttributes();

  return '''
<div$attributes style="$style">
${_renderChildren()}
</div>
''';
}