isExtended property
bool
get
isExtended
Whether toBytes writes the extended length fields.
False for a command with neither data nor expectedResponseLength even when forceExtended is set: case 1 is the four header bytes alone, and ISO 7816-4 gives it no extended spelling.
Implementation
bool get isExtended {
final body = data;
final le = expectedResponseLength;
if (body == null && le == null) return false;
return forceExtended || (body != null && body.length > 255) || (le != null && le > 256);
}