Sprint class Null safety

Printing API that allows for simple printing of messages.


Sprint(String owner, {bool includeTimestamp = false, bool productionMode = false, bool quietMode = false})
Create an instance of Sprint, indicated as belonging to owner.


hashCode int
The hash code for this object.
includeTimestamp bool
When set to true, a timestamp will be included with the printed message.
log LogFunction
Prints a message to the web console or to the terminal.
owner String
An identifier of the code in charge of this Sprint instance.
productionMode bool
When set to true, debug messages will not be displayed.
quietMode bool
When set to true, no messages will be displayed.
read / write
runtimeType Type
A representation of the runtime type of the object.
timestamp String
Obtains a timestamp if includeTimestamp is true.


call(dynamic message) → void
A call on the instance itself is synonymous with an info() call.
d(dynamic message) → void
Alias for debug().
debug(dynamic message) → void
Prints a debug message.
f(dynamic message) → void
Alias for fatal().
fatal(dynamic message) → void
Prints a fatal message.
format(dynamic message) String
Formats a message with a timestamp and the owner of the Sprint instance.
i(dynamic message) → void
Alias for info().
info(dynamic message) → void
Prints an informational message.
information(dynamic message) → void
Alias for info().
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
s(dynamic message) → void
Alias for success().
severe(dynamic message) → void
Prints a severe message.
success(dynamic message) → void
Prints a success message.
sv(dynamic message) → void
Alias for severe().
toString() String
A string representation of this object.
w(dynamic message) → void
Alias for warn().
warn(dynamic message) → void
Prints a warning message.
warning(dynamic message) → void
Alias for warn().


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