prompter_jeremylshepherd 0.0.2 copy "prompter_jeremylshepherd: ^0.0.2" to clipboard
prompter_jeremylshepherd: ^0.0.2 copied to clipboard

A library to help build CLI wizards, created in Udemy course

example/main.dart

import 'package:prompter_jeremylshepherd/prompter_jeremylshepherd.dart';

void main() {
  var prompter = Prompter();
  var options = [
    Option('I want red', '#f00'),
    Option('I want blue', '#00f'),
  ];

  String colorCode = prompter.askMultiple('Select a color', options);
  bool userPick = prompter.askBinary('Do you like Dart?');
  if (userPick) {
    print("Yeah us too");
  } else {
    print("That's too bad");
  }
  print(colorCode);
}
0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

A library to help build CLI wizards, created in Udemy course

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

More

Packages that depend on prompter_jeremylshepherd