Sprint class Null safety

Printing API that allows for simple printing of messages.

Constructors

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

Properties

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

Methods

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.
inherited
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.
inherited
w(dynamic message) → void
Alias for warn().
warn(dynamic message) → void
Prints a warning message.
warning(dynamic message) → void
Alias for warn().

Operators

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