toXmlTextValue method

XmlText? toXmlTextValue()

Returns an XmlText corresponding to the value of the object being represented or null if this object is not of type XmlText.

Implementation

XmlText? toXmlTextValue() {
  if (type?.isXmlAnnotationXmlText == true) {
    return XmlText();
  }

  return null;
}