XmlTagException.mismatchClosingTag constructor

XmlTagException.mismatchClosingTag(
  1. String expectedName,
  2. String actualName, {
  3. String? buffer,
  4. int? position,
})

Creates a new XmlTagException where expectedName was expected, but instead we found actualName.

Implementation

factory XmlTagException.mismatchClosingTag(
        String expectedName, String actualName,
        {String? buffer, int? position}) =>
    XmlTagException('Expected </$expectedName>, but found </$actualName>',
        expectedName: expectedName,
        actualName: actualName,
        buffer: buffer,
        position: position);