prompter_mh 0.0.6

  • Example
  • Installing
  • Versions
  • 49


prompter_mh is a dart CLI package for asking questions and retrieving the results. Flip on to the Example tab to see how it is used.

A Map<String, dynamic> of is available as result on your instance of the prompter. The String is the key specified to the ask method whiles dynamic is the value desired.

Supported prompt types

  • multiple: For asking multiple choice questions
  • binary: For asking boolean choice questions
  • text: For asking questions expecting text response



import 'package:prompter_mh/prompter_mh.dart';

void main() {
  // Instantiate a prompter instance
  Prompter prompter = Prompter();

  // Ask some questions
    'What Color Do You Want?',
      Option(label: 'I want red', value: '#f44141'),
      Option(label: 'I want blue', value: '#4158f4'),
      Option(label: 'I want green', value: '#42f47d'),
      Option(label: 'I want yellow', value: '#f4f441'),

    'Do you like banana?',

    'What is your name?',


Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  prompter_mh: ^0.0.6

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:prompter_mh/prompter_mh.dart';
Version Uploaded Documentation Archive
0.0.6 Dec 18, 2018 Go to the documentation of prompter_mh 0.0.6 Download prompter_mh 0.0.6 archive
0.0.5 Dec 17, 2018 Go to the documentation of prompter_mh 0.0.5 Download prompter_mh 0.0.5 archive
0.0.4 Dec 17, 2018 Go to the documentation of prompter_mh 0.0.4 Download prompter_mh 0.0.4 archive
0.0.3 Dec 17, 2018 Go to the documentation of prompter_mh 0.0.3 Download prompter_mh 0.0.3 archive
0.0.2 Dec 17, 2018 Go to the documentation of prompter_mh 0.0.2 Download prompter_mh 0.0.2 archive
0.0.1 Dec 17, 2018 Go to the documentation of prompter_mh 0.0.1 Download prompter_mh 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.10


Detected platforms: Flutter, other

Primary library: package:prompter_mh/prompter_mh.dart with components: io.

Health issues and suggestions

Document public APIs. (-1 points)

12 out of 12 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Format lib/src/option.dart.

Run dartfmt to format lib/src/option.dart.

Format lib/src/prompter.dart.

Run dartfmt to format lib/src/prompter.dart.

Format lib/src/terminal.dart.

Run dartfmt to format lib/src/terminal.dart.

Maintenance issues and suggestions

Maintain (-20 points)

Changelog entries help clients to follow the progress in your code.

Homepage URL is not helpful. (-10 points)

Update the homepage property: Create a website about the package or use the source repository URL.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK <3.0.0