getInputSpan function
Tag: input
Implementation
InlineSpan getInputSpan(m.Element node) {
bool checked = true;
if (node.attributes['checked'] != null) {
checked = node.attributes['checked']!.toLowerCase() == 'true';
}
return WidgetSpan(
child: StyleConfig().checkBoxBuilder?.call(checked, node.attributes) ??
MCheckBox(
attributes: node.attributes, config: StyleConfig().checkBoxConfig),
);
}