writeln 方法
- Object? object = ""
继承
通过调用 Object.toString 将 object
转换为 String,然后将结果写入 this
,并随后添加换行符。
实现
void writeln([Object? object = ""]) {
_write(object);
_sink.write(_windowsLineTerminator ? "\r\n" : "\n");
_lastWrittenCharIsCR = false;
}