toIntList method

Uint8List toIntList()

Convert the request into a socket-compatible Uint8List.

Implementation

Uint8List toIntList() {
  final request = [...intToUint8List(id, idWidth)];
  if (data != null) request.addAll(data!);
  return Uint8List.fromList(request);
}