InteractiveService class

Service for handling interactive user prompts

Constructors

InteractiveService()

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

clearConsole() → void
Clear the console (cross-platform)
confirmChanges(List<String> changes) Future<bool>
Show a summary and ask for confirmation
promptContinue(String message) Future<bool>
Prompt user to continue with the operation
promptSelect(String message, List<String> options) Future<int?>
Prompt user to select from multiple options
promptYesNo(String message) Future<bool>
Prompt user with a yes/no question Returns true for yes, false for no
showComplete(String message) → void
Show completion message
showError(String message) → void
Show error message
showInfo(String message) → void
Show info message
showList(String title, List<String> items) → void
Show a list with numbered items
showProgress(String message) → void
Show progress indicator
showWarning(String message) → void
Show warning message
waitForEnter([String? message]) Future<void>
Wait for user to press Enter