ConsoleLogger class
Simplified console printing utility for consistent formatting
This class provides a unified way to handle console output in the SG CLI, focusing on the essential message types: success, error, warning, info, and loading.
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
-
Prints
title(and an optionalsubtitle) centered inside a decorative asterisk banner. -
blank(
) → void - Prints an empty line.
-
divider(
{String title = ''}) → void -
Prints a horizontal divider line. Pass
titleto print it centered inside a boxed header instead of a plain line. -
error(
String message) → void -
Prints
messagewith an error symbol in front of it. -
info(
String message) → void -
Prints
messagewith an info symbol in front of it. -
list(
List< String> items, {String bullet = '•'}) → void -
Prints each entry in
itemson its own line, prefixed withbullet. -
loading(
String message) → void -
Prints
messagewith a loading symbol in front of it. -
package(
String message) → void -
Prints
messagewith a package symbol in front of it. -
raw(
String message) → void -
Prints
messageas-is, with no symbol or formatting. -
success(
String message) → void -
Prints
messagewith a success symbol in front of it. -
warning(
String message) → void -
Prints
messagewith a warning symbol in front of it.