newTag static method
Creates a new Bs4Element.
name
- tag nameattrs
- attributes to be added to the tagstring
- text content
Implementation
static Bs4Element newTag(
String? name, {
Map<String, String>? attrs,
String? string,
}) {
final newElement = Element.tag(name);
if (attrs != null) {
newElement.attributes.addAll(attrs);
}
newElement.text = string;
return newElement.bs4;
}