DCPrompter class

Constructors

DCPrompter.new({required DCConsole console, required String message, bool secret = false})
const

Properties

console DCConsole
final
hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret bool
final

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>