question_wizard 0.0.1 copy "question_wizard: ^0.0.1" to clipboard
question_wizard: ^0.0.1 copied to clipboard

this is a wizard of the command line

example/main.dart

import 'package:question_wizard/question_wizard.dart';

void main() {
  final List<Option> options = [
    new Option(label: 'choose a blue color', value: '#0000FF'),
    new Option(label: 'choose a green color', value: '#00FF00'),
  ];
  Prompter prompter = Prompter();

  String? colorCode = prompter.askMultiple('select a color:', options);
  bool answer = prompter.askBinary('do you like this package 🥰');

  if (answer) {
    print("thank's a lot buddy 😊");
  } else {
    print("I know that's not a great package. 😔");
  }
}
1
likes
110
pub points
0%
popularity

Publisher

unverified uploader

this is a wizard of the command line

Homepage

Documentation

API reference

License

unknown (LICENSE)

More

Packages that depend on question_wizard