ReportFile class

A StringSink that writes to a file, and optionally echoes to stdout.

Every write goes to disk at once, so a long benchmark run that is interrupted keeps everything written so far. Pass one as the out of runComparison to stream tables into a report.

Implemented types

Constructors

ReportFile(String path, {bool echo = true})
Creates or truncates the file at path.
factory

Properties

echo → bool
Whether writes are echoed to stdout.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the file. Further writes throw.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(Object? object) → void
Writes the string representation of object.
override
writeAll(Iterable objects, [String separator = '']) → void
Writes the elements of objects separated by separator.
override
writeCharCode(int charCode) → void
Writes a string containing the character with code point charCode.
override
writeln([Object? object = '']) → void
Writes the string representation of object followed by a newline.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited