Console class
Utility class for styled console output.
Provides methods for printing colored and formatted messages to the terminal, including banners, success/error messages, and interactive prompts.
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
-
dim_(
String msg) → void - Prints a dimmed/faint message.
-
error(
String msg) → void - Prints an error message in red.
-
info(
String msg) → void - Prints an info message in cyan.
-
printBanner(
) → void - Prints the Archit CLI banner to the console.
-
printFeatureList(
List< String> features) → void - Prints a formatted list of features.
-
printUsecaseList(
String feature, List< String> usecases) → void - Prints a formatted list of usecases for a feature.
-
prompt(
String message, {String? defaultVal}) → String? - Prompts the user for input.
-
selectFromList(
String title, List< String> options, {bool multiSelect = false}) → int - Displays a list of options and prompts the user to select one.
-
selectMultipleFromList(
String title, List< String> options) → List<int> - Displays a list of options and prompts the user to select multiple.
-
separator(
) → void - Prints a visual separator line.
-
step(
String msg) → void - Prints a step/progress message in blue.
-
success(
String msg) → void - Prints a success message in green.
-
warning(
String msg) → void - Prints a warning message in yellow.