UserPrompt class

Utility class for interactive user prompts

Constructors

UserPrompt()

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

askInt(String question, {required int defaultValue}) Future<int>
Ask for a number input
askString(String question, {String? defaultValue}) Future<String>
Ask for a string input
askYesNo(String question, {bool defaultValue = true}) Future<bool>
Ask a yes/no question
confirmConfiguration(GenConfig config) Future<bool>
Show configuration preview and ask for confirmation
printConfigPreview(GenConfig config) → void
Print a pretty configuration preview box
showMenu(String title, List<String> options) Future<int>
Show a menu and get user selection
showProgress(int current, int total, String currentFile) → void
Show progress during file processing