buildXml method

void buildXml(
  1. XmlBuilder builder, {
  2. String tag = 'Vector2D',
  3. String namespace = Xmlns.tt,
})

Implementation

void buildXml(
  XmlBuilder builder, {
  String tag = 'Vector2D',
  String namespace = Xmlns.tt,
}) =>
    builder.element(tag, nest: () {
      builder.namespace(namespace);

      builder.attribute('x', x);
      builder.attribute('y', y);

      if (selector != null) {
        builder.attribute('space', selector!.space);
      }
    });