attachParentEvent method Null safety

  1. @internal
void attachParentEvent(
  1. XmlStartElementEvent? parentEvent
)
@internal, inherited

Internal helper to attach a parent to this child, do not call directly.

Implementation

@internal
void attachParentEvent(XmlStartElementEvent? parentEvent) {
  if (_parentEvent != null) {
    throw StateError('Parent event already resolved.');
  }
  _parentEvent = parentEvent;
}