Namespace constructor

Namespace({
  1. required String encodedPrefix,
  2. String? delimiter,
  3. Map<String, List<String>> extensions = const {},
})

Creates a new namespace from its wire form.

encodedPrefix is the prefix as sent by the server, i.e. in modified UTF-7 unless the server supports UTF8=ACCEPT; prefix is the decoded form.

Implementation

Namespace({
  required this.encodedPrefix,
  this.delimiter,
  this.extensions = const {},
}) : prefix = _modifiedUtf7Codec.decodeText(encodedPrefix);