clause method

  1. @override
CommandClause clause()
override

Implementation

@override
CommandClause clause() {
  if (_bold != null) {
    super.prepend(CBold(bold: _bold!));
  }
  if (_underline != null) {
    super.prepend(CUnderLine(underline: _underline!));
  }
  if (_mag != null) {
    super.prepend(CMag(font: _font));
  }

  return CPCLCommand(header: header())
      .appendNumber(_font.getFamily())
      .appendNumber(_font.getSize())
      .appendNumber(_textX)
      .appendNumber(_textY)
      .appendText(_content)
      .clause();
}