D4rtOutput class

Where a run's output goes.

Constructors

D4rtOutput({void out(String text)?, void err(String text)?, bool captureStdio = true, bool echo = false, bool lines = false})
const

Properties

captureStdio → bool
Also capture dart:io stdout / stderr, not only print. Where dart:io does not exist (the web) only print is captured.
final
echo → bool
Also write to the real console.
final
err → void Function(String text)?
stderr writes.
final
hashCode → int
The hash code for this object.
no setterinherited
lines → bool
Deliver whole lines (without their newline) instead of the text as written; what is left is flushed when the run has drained.
final
out → void Function(String text)?
print and stdout writes, the text as written (print adds its newline).
final
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