todo 1.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 54

Sometimes you just want to implement the general architecture of your code without implementing details yet. This package offers a TODO() method that you can use to indicate that a part of your code hasn't been implemented yet.

int maximumOf(List<int> numbers) {
    if (numbers.isEmpty) {
        return TODO("Handle empty list of numbers.");
    }
    TODO("Find the maximum.");
}

🚧 It can be used as a statement or expression for any type and accepts an optional message.
💥 When executed, it just throws an UnimplementedError.

1.0.1 – 2020-05-08 #

  • Revise readme.
  • Make library code pass stronger analysis.

1.0.1 – 2020-05-08 #

  • Revise example and emojis.

1.0.0 – 2020-05-08 #

  • Initial release of the TODO function.

example/main.dart

import 'package:todo/todo.dart';

int maximumOf(List<int> numbers) {
  if (numbers.isEmpty) {
    return TODO("Handle empty list of numbers.");
  }
  TODO("Find the maximum.");
}

Use this package as a library

1. Depend on it

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


dependencies:
  todo: ^1.0.2

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:todo/todo.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
8
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
54
Learn more about scoring.

We analyzed this package on Jul 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >= 2.2.0 <3.0.0
meta ^1.1.0 1.2.1