buildXml method

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

Implementation

@override
void buildXml(
  XmlBuilder builder, {
  String tag = 'Vector1D',
  String? namespace = Xmlns.tt,
}) =>
    builder.element(tag, nest: () {
      builder.namespace(namespace!);

      builder.attribute('x', x);

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