XmlName constructor

XmlName(
  1. String local, [
  2. String? prefix
])

Creates a qualified XmlName from a local name and an optional prefix.

Implementation

factory XmlName(String local, [String? prefix]) =>
    prefix == null || prefix.isEmpty
        ? XmlSimpleName(local)
        : XmlPrefixName(prefix, local, '$prefix${XmlToken.namespace}$local');