prompter_tuds 1.0.0



import '../lib/prompter_tuds.dart';

void main()
  Prompter prompter = new Prompter();

  List<Option> options = new List();
  options.add(new Option("Red", "#245677"));
  options.add(new Option("Blue", "#149fcc"));

  print(prompter.askMultiple("Which is your favourite color", options));

  print(prompter.askBoolean("Do you like our library?"));


Use this package as a library

1. Depend on it

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

  prompter_tuds: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:prompter_tuds/prompter_tuds.dart';
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 Feb 25, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health issues and suggestions

Document public APIs. (-1 points)

18 out of 18 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/terminal.dart. (-1 points)

Analysis of lib/src/terminal.dart reported 2 hints:

line 17 col 7: DO use curly braces for all flow control structures.

line 19 col 7: DO use curly braces for all flow control structures.

Fix lib/src/prompter.dart. (-0.50 points)

Analysis of lib/src/prompter.dart reported 1 hint:

line 20 col 12: This function has a return type of 'String', but doesn't end with a return statement.

Format lib/src/option.dart.

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

Maintenance issues and suggestions

Provide a file named (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field was unreachable.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK < 3.0.0