GfLogic.constant constructor

GfLogic.constant(
  1. GfValue value, {
  2. String? name,
})

Returns a constant field element as a typed signal.

Implementation

factory GfLogic.constant(GfValue value, {String? name}) => GfLogic.of(
      Const(value.logicValue, preferredRadix: 2),
      field: value.field,
      name: name,
    );