writeOn method
Write a representation of the file system on the given sink
.
Implementation
void writeOn(StringSink sink) {
List<String> paths = _pathToData.keys.toList();
paths.sort();
paths.forEach(sink.writeln);
}
Write a representation of the file system on the given sink
.
void writeOn(StringSink sink) {
List<String> paths = _pathToData.keys.toList();
paths.sort();
paths.forEach(sink.writeln);
}