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