appendTextSpan method

void appendTextSpan(
  1. TextSpan span
)

Appends a TextSpan and writes it to the current _wrappedStyleBuffer or writes it to the output directly.

Implementation

void appendTextSpan(TextSpan span) {
  if (_wrapStyleBuffer.isNotEmpty) {
    _wrapStyleBuffer.last.addChild(span);
    _textBuffer.clear();
    return;
  }

  _output.add(span);
}