parent property

Parent get parent

Access parent of the current BaseScopeContainer.

Implementation

Parent get parent {
  final p = _parent;
  if (p == null) {
    throw ScopeException(
      '$runtimeType: You must set parent in your Scope constructor',
    );
  }
  return p;
}
  1. @protected
set parent (Parent parent)

Must not be used anyone except for the child with this mixin. Should only be used inside constructor, see ChildScopeContainer.

Implementation

@protected
set parent(Parent parent) => _parent = parent;