whitespacePre method

TextBuilder whitespacePre()

whitespace-pre: white-space: pre; ❌ 不支持:Flutter 不支持保留空格和换行符

Implementation

TextBuilder whitespacePre() {
  // Flutter 不支持 pre,使用 nowrap 作为替代
  _maxLines = 1;
  return this;
}