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

Library to create Dart CLI wizzard

example/main.dart

import 'package:d_term_prompter_sg/d_term_prompter_sg.dart';




void main() {
  final question = "What color?";
  final options = [
    Option("Green Label", "Green"),
    Option("Blue Label", "Blue"),
  ];

  final prompter = Prompter();
  final colorAnswer = prompter.askMultiple(question, options);
  final answer = prompter.askBinary("Chosen color is Blue?");

  print("It was: $colorAnswer | $answer");  
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Library to create Dart CLI wizzard

License

unknown (LICENSE)

More

Packages that depend on d_term_prompter_sg