maybe 0.4.0
maybe: ^0.4.0 copied to clipboard

An helper for ensuring that values are checked before they are used.

0
likes
95 / 110
pub points
66 %
popularity

We analyzed this package on Apr 13, 2021, and awarded it 95 pub points (of a possible 110):

Follow Dart file conventions
15 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

0/5 points: Provide a valid CHANGELOG.md

No `CHANGELOG.md` found.

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

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/main.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 25 out of 34 API elements (73.5 %) have documentation comments.
Support multiple platforms
20 / 20

20/20 points: Supports 2 of 2 possible platforms (native, js)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 20 issues. Showing the first 2:

INFO: Prefer using /// for doc comments.

lib/map.dart:5:1

   ╷
5  │ ┌ /**
6  │ │  * A map with optional values.
7  │ │  * 
8  │ │  * If a [nothing] is added, it removes an old value.
9  │ │  * 
10 │ │  * If a key isn't present in the map, [nothing] is returned as value.
11 │ └  */
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/map.dart

INFO: Prefer using /// for doc comments.

lib/map.dart:16:3

   ╷
16 │ ┌   /**
17 │ │    * Creates a [MaybeMap].
18 │ │    * 
19 │ │    * If [nullable] is `true`, `null` values are considered as `some`.
20 │ └    */
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/map.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

No dependencies.

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analysed with Pana 0.15.4, Dart 2.12.2.

0
likes
95
pub points
66%
popularity

An helper for ensuring that values are checked before they are used.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

alois.deniel@gmail.com

License

MIT (LICENSE)

More

Packages that depend on maybe