getInputSpan function

InlineSpan getInputSpan(
  1. Element node
)

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),
  );
}