CreditInterface<LogicType extends Logic> constructor
- LogicType data, {
- CreditContract contract = const CreditContract.unspecified(),
Creates a single-pool credit interface with the given payload shape.
Implementation
CreditInterface(
this.data, {
this.contract = const CreditContract.unspecified(),
}) : super(
portsFromProvider: [data, Logic.port('valid')],
portsFromConsumer: [Logic.port('creditReturn')],
);