parent property

BeamerDelegate? parent

A delegate of a parent of the Beamer that has this delegate.

This is not null only if multiple Beamers are used; *App.router and at least one more Beamer in the Widget tree.

Implementation

BeamerDelegate? get parent => _parent;
void parent=(BeamerDelegate? parent)

Implementation

set parent(BeamerDelegate? parent) {
  if (parent == null && _parent != null) {
    _parent!.removeListener(_updateFromParent);
    _parent!._children.remove(this);
    _parent = null;
    return;
  }
  if (_parent == parent) {
    return;
  }
  _parent = parent;
  _parent!._children.add(this);
  _initializeChild();
  if (updateFromParent) {
    _parent!.addListener(_updateFromParent);
  }
}