gets method

void gets(
  1. Logic other
)

Connects this Logic directly to be driven by other.

Every time other transitions (glitches), this signal will transition the same way.

Implementation

void gets(Logic other) {
  // If we are connecting a `LogicStructure` to this simple `Logic`,
  // then pack it first.
  if (other is LogicStructure) {
    // ignore: parameter_assignments
    other = other.packed;
  }

  _assertConnectable(other);

  _connect(other);

  other._registerConnection(this);
}