$button function
Creates a button node.
Implementation
DOMElement $button({
Object? id,
Object? name,
Object? classes,
Object? style,
String? type,
Map<String, dynamic>? attributes,
Object? content,
bool? hidden,
bool disabled = false,
bool commented = false,
}) => $tag(
'button',
id: id,
classes: classes,
style: style,
attributes: {
'type': type != null && type.isNotEmpty ? type : 'button',
'name': ?name,
if (disabled) 'disabled': disabled,
...?attributes,
},
content: content,
hidden: hidden,
commented: commented,
);