XmlEntity constructor

const XmlEntity(
  1. String name,
  2. String value, {
  3. bool isParameter = false,
  4. bool isSystem = false,
  5. bool isPublic = false,
  6. List<XmlEntity>? externalEntities,
  7. String? ndata,
})

A DTD Entity Declaration.

name must not be null and must be > 0 in length.

value must not be null.

isSystem and isPublic must not be null, and only one of them may be true.

Implementation

const XmlEntity(
  this.name,
  this.value, {
  this.isParameter = false,
  this.isSystem = false,
  this.isPublic = false,
  this.externalEntities,
  this.ndata,
})  : assert(name.length > 0),
      assert(!(isPublic && isSystem));