buildXml method

void buildXml(
  1. XmlBuilder builder, {
  2. required String tag,
  3. String? namespace,
})

Implementation

void buildXml(
  XmlBuilder builder, {
  required String tag,
  String? namespace,
}) =>
    builder.element(tag, nest: () {
      if (namespace != null) {
        builder.namespace(namespace);
      }

      builder.text(this);
    });