clause method

  1. @override
CommandClause clause()
override

Implementation

@override
CommandClause clause() {
  return CPCLCommand(header: header(), charset: 'utf-8')
      .appendText('${_level.getLevelInt()}\n${_codeRotation.getHeader()}')
      .appendText("QR")
      .appendNumber(_x)
      .appendNumber(_y)
      .appendText("M")
      .appendText("2")
      .appendText("U")
      .appendText("$_width\n${_level.getLevel()}A,${_content.replaceAll('\r', ' ').replaceAll('\n', ' ')}\nENDQR")
      .clause();
}