Console class
A utility class for logging messages with different severity levels.
The Console class provides static methods for logging warnings, errors,
information, debugging messages, and fatal errors. The logs are managed using
the Logger
package and optionally printed to the console.
Example usage:
Console.i("This is an informational message.");
Console.e("This is an error message.");
Constructors
- Console()
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 Methods
-
d(
dynamic object) → void - Logs a debug message.
-
e(
dynamic object) → void - Logs an error message.
-
i(
dynamic object) → void - Logs an informational message.
-
isTestRunning(
) → bool -
p(
dynamic object) → void - Logs a fatal or critical error message.
-
w(
dynamic object) → void - Logs a warning message.
-
write(
dynamic obj) → void -
Prints the given
obj
to the console.