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 optional subtitle) centered inside a decorative asterisk banner.
blank() → void
Prints an empty line.
divider({String title = ''}) → void
Prints a horizontal divider line. Pass title to print it centered inside a boxed header instead of a plain line.
error(String message) → void
Prints message with an error symbol in front of it.
info(String message) → void
Prints message with an info symbol in front of it.
list(List<String> items, {String bullet = '•'}) → void
Prints each entry in items on its own line, prefixed with bullet.
loading(String message) → void
Prints message with a loading symbol in front of it.
package(String message) → void
Prints message with a package symbol in front of it.
raw(String message) → void
Prints message as-is, with no symbol or formatting.
success(String message) → void
Prints message with a success symbol in front of it.
warning(String message) → void
Prints message with a warning symbol in front of it.