withExpectedResponseLength method
The same command asking for expectedResponseLength bytes instead.
This is what a 6Cxx answer calls for: the card rejected the Le it was sent and named
the one it wants, and the command has to go out again unchanged except for that field.
Implementation
CommandApdu withExpectedResponseLength(int expectedResponseLength) => CommandApdu(
instructionClass: instructionClass,
instructionCode: instructionCode,
p1Parameter: p1Parameter,
p2Parameter: p2Parameter,
data: data,
expectedResponseLength: expectedResponseLength,
forceExtended: forceExtended,
);