Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcelgarus/todo
Offers a TODO() method to indicate that code has not been implemented yet.
https://github.com/marcelgarus/todo
Last synced: 8 days ago
JSON representation
Offers a TODO() method to indicate that code has not been implemented yet.
- Host: GitHub
- URL: https://github.com/marcelgarus/todo
- Owner: MarcelGarus
- License: mit
- Created: 2020-05-08T11:39:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T14:10:31.000Z (over 3 years ago)
- Last Synced: 2024-05-01T15:34:07.581Z (6 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/todo
- Size: 10.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
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.```dart
int maximumOf(List 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`.