📜  dart 中字符串类的替代,stringBuffer dart,字符串缓冲区 dart,字符串缓冲区,字符串缓冲区,字符串缓冲区 - 无论代码示例

📅  最后修改于: 2022-03-11 14:54:59.992000             🧑  作者: Mango

代码示例1
var sb = StringBuffer();
sb
  ..write('Use a StringBuffer for ')
  ..writeAll(['efficient', 'string', 'creation'], ' ')
  ..write('.');

var fullString = sb.toString();

assert(fullString ==
    'Use a StringBuffer for efficient string creation.');