SimplePrompts class

Factory methods for common SimplePrompt patterns.

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

choice({required String title, required List<String> options, int initialIndex = 0, PromptTheme theme = PromptTheme.dark}) SimplePrompt<String>
Creates a single-choice prompt with inline options.
confirm({required String title, required String message, String yesLabel = 'Yes', String noLabel = 'No', bool defaultYes = true, PromptTheme theme = PromptTheme.dark}) SimplePrompt<bool>
Creates a boolean confirm prompt (Yes/No).
number({required String title, int initial = 0, int min = 0, int max = 100, int step = 1, PromptTheme theme = PromptTheme.dark}) SimplePrompt<int>
Creates a simple number input prompt.