namespacePrefix property

String? get namespacePrefix
inherited

The namespace prefix, or null.

Implementation

String? get namespacePrefix {
  final index = name.indexOf(XmlToken.namespace);
  return index > 0 ? name.substring(0, index) : null;
}