LogBuffer class

Internal. Collects log lines and writes them in one go every few ms. One big write is much cheaper than one blocking write per line. Used by Logger. Not part of the public API.

Constructors

LogBuffer()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

writer ↔ void Function(String)
where the text goes. Tests change it.
getter/setter pair

Static Methods

flush() → void
write(String line, {bool now = false}) → void
Add line. With now true, write everything at once. Lines that came before go first, so the order stays.