Logger class
Writes coloured messages to stdout using ANSI escape codes.
Each method wraps message in a colour code and a reset, so callers just
pick the semantic helper (success, error, info, normal) or supply a
LogColor via custom.
Constructors
- Logger()
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
-
custom(
String message, {LogColor logColor = LogColor.white}) → void -
Writes
messagein the givenlogColor. -
error(
String message) → void -
Writes
messagein red (error). -
info(
String message) → void -
Writes
messagein cyan (info). -
normal(
String message) → void -
Writes
messagein white (normal). -
success(
String message) → void -
Writes
messagein green (success).