appendTextFormatted method

void appendTextFormatted(
  1. TextFormatted textFormatted, {
  2. bool scrollToBottom = true,
})

Alias to appendText passing textFormatted attributes.

Implementation

void appendTextFormatted(TextFormatted textFormatted,
    {bool scrollToBottom = true}) {
  if (_onlyTextFormatted) {
    var allTextFormatted = _allTextFormatted ??= [];
    allTextFormatted.add(textFormatted);
  }

  _appendTextImpl(textFormatted.text,
      bold: textFormatted.bold,
      italic: textFormatted.italic,
      underline: textFormatted.underline,
      color: textFormatted.color,
      faceName: textFormatted.faceName,
      scrollToBottom: scrollToBottom);
}