$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': isNotEmptyString(type) ? type! : 'button',
if (name != null) 'name': name,
if (disabled) 'disabled': disabled,
...?attributes
},
content: content,
hidden: hidden,
commented: commented);