clone method

  1. @override
ReadyValidCodecInterface<LogicType> clone()
override

Creates a new Interface with the same ports as this.

It is expected that any implementation will override this in a way that returns the same type as itself.

Implementation

@override
ReadyValidCodecInterface<LogicType> clone() =>
    ReadyValidCodecInterface<LogicType>(
      cloneInterfacePayload<LogicType>(data.data),
      contract: contract,
      name: data.name,
    );