- StringBuffer
StringBuffer
examples/dart-intro/stringbuffer.dart
main() { StringBuffer sb = new StringBuffer(); sb.write("Hello"); sb.writeAll(['space', 'and', 'more']); print(sb); print(sb.toString()); sb.clear(); }
main() { StringBuffer sb = new StringBuffer(); sb.write("Hello"); sb.writeAll(['space', 'and', 'more']); print(sb); print(sb.toString()); sb.clear(); }