lazy_memo 0.0.3-nullsafety
lazy_memo: ^0.0.3-nullsafety copied to clipboard

Helper classes for defining lazy variables and memoized functions. Null-safety must be enabled to use this package.

0
likes
80 / 110
pub points
32 %
popularity

We analyzed this package on Jan 11, 2021, and awarded it 80 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/README.md

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

  • 19 out of 22 API elements (86.4 %) have documentation comments.
Support multiple platforms
20 / 20

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

Pass static analysis
0 / 30

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

Found 8 issues. Showing the first 2:

ERROR: 'T' can't be used to name both a type variable and a member in this class.

lib/src/lazy.dart:6:12

  ╷
6 │ class Lazy<T> {
  │            ^
  ╵

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

ERROR: Undefined class 'late'.

lib/src/lazy.dart:13:3

   ╷
13 │   late T _cache;
   │   ^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/lazy.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

0
likes
80
pub points
32%
popularity

Publisher

simphotonics.com

Helper classes for defining lazy variables and memoized functions. Null-safety must be enabled to use this package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

More

Packages that depend on lazy_memo