DCPrompter class
Constructors
- DCPrompter.new({required DCConsole console, required String message, bool secret = false})
-
const
Properties
Methods
-
ask(
{List< String> positive = const []}) → Future<bool> -
ask_sync(
{List< String> positive = const []}) → bool? - Prompts a user for a yes or no answer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prompt(
{bool checker(String response)?}) → Future< String> -
prompt_sync(
{bool checker(String response)?}) → String? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
DC_YES_RESPONSES
→ const List<
String>