toHtml method
Implementation
String toHtml() {
final style = _buildStyle();
final tag = onTap != null ? 'a href="$onTap"' : 'span';
return '<$tag style="$style">${_escapeHtml(text)}</${tag.split(' ').first}>';
}
String toHtml() {
final style = _buildStyle();
final tag = onTap != null ? 'a href="$onTap"' : 'span';
return '<$tag style="$style">${_escapeHtml(text)}</${tag.split(' ').first}>';
}