checkClosingTag static method

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

Ensure that the expected tag matches the actual one.

Implementation

static void checkClosingTag(String expectedName, String actualName,
    {String? buffer, int? position}) {
  if (expectedName != actualName) {
    throw XmlTagException.mismatchClosingTag(expectedName, actualName,
        buffer: buffer, position: position);
  }
}