com_imagebase_prompter 0.0.1 com_imagebase_prompter: ^0.0.1 copied to clipboard
dart library to create dialog prompter
// import '../lib/src/terminal.dart' as terminal;
import 'package:com_imagebase_prompter/com_imagebase_prompter.dart';
// import 'package:com.imagebase.prompter/src/prompter.dart';
void main() {
// var term = new Terminal();
// term.clearScreen();
var options = [
new Option('Choose Red', '#ff0000'),
new Option('Choose Blue', '#0000ff'),
new Option('Choose Green', '#00ff00'),
];
var prompter = new Prompter();
final String colorCode =
prompter.ask_MultiChoice('What is your favorite color?', options);
print(colorCode);
final bool quitPreference = prompter.ask_binary('Do you want to quit now?');
print(quitPreference);
}