toBytes method

Uint8List toBytes()

Returns serialized command APDU.

Implementation

Uint8List toBytes() {
  final lc = _getLc();
  final le = _getLe();
  return Uint8List.fromList(rawHeader() + [...lc, ...?_data, ...le]);
}