parentModule property
override
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
@override
Module? get parentModule => _parentModule;
override
Sets the value of parentModule to newParentModule
.
This should only be called by Module.build. It is used to optimize search.
Implementation
@protected
@override
set parentModule(Module? newParentModule) {
assert(_parentModule == null || _parentModule == newParentModule,
'Should only set parent module once.');
_parentModule = newParentModule;
}