ApduResponse class
Parsed ISO 7816-4 APDU response.
Raw layout: [Data bytes… | SW1 | SW2]
The last two bytes are always the Status Word (SW1 SW2).
Constructors
-
ApduResponse({required List<
int> data, required int sw1, required int sw2}) -
const
-
ApduResponse.parse(List<
int> raw) -
Parse a raw byte list returned by NfcBridge.transceive.
factory
Properties
- bytesAvailable → int
-
Number of additional bytes available when needsGetResponse is
true.no setter -
data
→ List<
int> -
Data payload returned by the card (everything except the status word).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSuccess → bool
-
truewhen SW = 0x9000 (normal completion).no setter - isWarning → bool
-
truewhen SW1 = 0x62 or 0x63 — warning condition.no setter - needsGetResponse → bool
-
truewhen SW1 = 0x61 — card has bytesAvailable more bytes to send.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusDescription → String
-
no setter
- statusHex → String
-
no setter
- statusWord → int
-
Combined 16-bit status word (SW1 << 8 | SW2).
no setter
- sw1 → int
-
Status Word byte 1.
final
- sw2 → int
-
Status Word byte 2.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited