attach method
- PipelineOwner owner
override
Mark this render object as attached to the given owner.
Typically called only from the parent's attach method, and by the
owner
to mark the root of a tree as attached.
Subclasses with children should override this method to
attach all their children to the same owner
after calling the inherited method, as in super.attach(owner)
.
Implementation
@override
void attach(PipelineOwner owner) {
super.attach(owner);
// If there's a pending callback that would imply this node was detached
// between the idle phase and the next transientCallbacks phase. The tree
// can not be mutated between those two phases so that should never happen.
assert(!_hasPendingSystemFontsDidChangeCallBack);
PaintingBinding.instance.systemFonts.addListener(_scheduleSystemFontsUpdate);
}