isOutput property

bool isOutput
latefinal

Returns true iff this signal is an output of its parent Module.

Implementation

late final bool isOutput =
    // this can be cached because parentModule is set at port creation
    parentModule?.isOutput(this) ?? false;