XPathQName constructor

XPathQName(
  1. String? namespace,
  2. String name
)

Creates a name; name and a non-null namespace must be non-empty.

Implementation

XPathQName(this.namespace, this.name) {
  if (name.isEmpty || (namespace != null && namespace!.isEmpty)) {
    throw ArgumentError('Invalid QName');
  }
}