attachNotificationTree method Null safety

  1. @override
void attachNotificationTree()
override

Called in Element.mount and Element.activate to register this element in the notification tree.

This method is only exposed so that NotifiableElementMixin can be implemented. Subclasses of Element that wish to respond to notifications should mix that in instead.

See also:

Implementation

@override
void attachNotificationTree() {
  _notificationTree = _NotificationNode(_parent?._notificationTree, this);
}