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

Library to create CLI wizard

example/main.dart

import '../lib/prompter_matr0s.dart';

void main() {
  var prompter = Prompter();

  List<Option> options = [
    Option(label: 'I want red', value: '#f00'),
    Option(label: 'I want blue', value: '#00f'),
  ];

  final String colorCode =
      prompter.askMultiple('Choose your color, pls', options);

  final bool answer = prompter.askBinary('Do you like Dart?');

  print('Color code is $colorCode and Answer is $answer');
}
0
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Library to create CLI wizard

Homepage

Documentation

API reference

License

unknown (LICENSE)

More

Packages that depend on prompter_matr0s