Last updated:
0 purchases
prompter pochi
Prompter Pochi #
This is part of a tutorial
More text to test this .md format, it's kind of neat.
Example of using the library: #
import 'package:prompter_pochi/prompter_pochi.dart';
void main() {
final prompter = Prompter();
final color = prompter.askMultiple(
'Select a color',
[
Option(label: 'I want red', value: [255, 0, 0]),
Option(label: 'I want green', value: [0, 255, 0]),
Option(label: 'I want blue', value: [0, 0, 255]),
],
);
final answer = prompter.askBinary('Do you like this lib?');
print('Color selected: $color');
if (answer) {
print('Thanks for liking this!');
} else {
print('The lib doesn\'t like you either');
}
}
copied to clipboard
Visit the search engine that knows everything about me
first
second
third
first
second
third
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.