attachParent method Null safety

  1. @override
void attachParent(
  1. covariant T parent
)

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

Implementation

@override
void attachParent(T parent) {
  XmlParentException.checkNoParent(this);
  _parent = parent;
}