StubPrinter class

Use StubPrinter to substitute for TruePrinter when running tests. All printed values will be stored.

For println, it can be accessed through prints.

For printErr, it can be accessed through errorPrints.

Implemented types

Constructors

StubPrinter()

Properties

errorPrints List<String>
final
hashCode int
The hash code for this object.
no setterinherited
prints List<String>
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
printErr(String str) → void
Prints an error string
override
println(String str) → void
Prints a regular string
override
printSuccess(String str) → void
Prints a string signifying success.
override
toString() String
A string representation of this object.
inherited

Operators

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