getPaddedCommand function

List<int> getPaddedCommand(
  1. String command
)

Implementation

List<int> getPaddedCommand(String command) {
  var spaceToPad = 12 - command.length;
  List<int> byteCommand = utf8.encode(command) + List.filled(spaceToPad, 0);
  return byteCommand;
}