parentModule property

Module? parentModule

The Module that this Logic exists within.

For internal signals, this only gets populated after its parent Module, if it exists, has been built. Ports (both input and output) have this populated at the time of creation.

Implementation

Module? get parentModule => _parentModule;
  1. @protected
void parentModule=(Module? newParentModule)

Sets the value of parentModule to newParentModule.

This should only be called by Module.build(). It is used to optimize search.

Implementation

@protected
set parentModule(Module? newParentModule) => _parentModule = newParentModule;