cache_annotations 1.0.2 copy "cache_annotations: ^1.0.2" to clipboard
cache_annotations: ^1.0.2 copied to clipboard

This package is a type conversion generator using source_gen and inspired by Retrofit to help you manage persistent cache.

2
likes
100/ 140
pub points
46%
popularity

We analyzed this package 3 days ago, and awarded it 100 pub points (of a possible 140):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: cache_annotations,
    • contains a version property, and,
    • does not contain a publish_to property.

cache_annotations/pubspec.yaml from the repository defines publish_to, thus, we are unable to verify the package is published from here.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

failed
Provide documentation
0 / 20trigger folding of the section

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

OUT: Documenting cache_annotations... Discovering libraries... Linking elements... Precaching local docs for 593841 elements... Initialized dartdoc with 750 libraries Generating docs for library generators.dart from package:cache_annotations/generators.dart... Generating docs for library annotations.dart from package:cache_annotations/annotations.dart... Documented 2 public libraries in 63.9 seconds ERR: warning: ambiguous reexport of cache_generator_annotations.MaxAge, canonicalization candidates: (cache_annotations, cache_annotations) -> cache_annotations (confidence 0.000) from cache_generator_annotations.MaxAge: (file:///tmp/pana_PVHSAF/lib/src/cache_generator_annotations.dart:22:7) cache_annotations: 1.210 - (_Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) cache_annotations: 1.210 - (_Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) Use {@canonicalFor cache_generator_annotations.MaxAge} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library will be displayed in navigation for the relevant pages. The flag [65 more lines]

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS

These platforms are not supported:

Package does not support platform `Web`.

Because:

  • package:cache_annotations/annotations.dart that imports:
  • package:cache_annotations/src/local_store_cache_mixin.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

lib/annotations.dart doesn't match the Dart formatter.

To format your files run: dart format .

lib/generators.dart doesn't match the Dart formatter.

To format your files run: dart format .

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

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

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
localstore ^1.4.0 1.4.0 1.4.0
path_provider ^2.1.3 2.1.3 2.1.3
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
ffi - 2.1.2 2.1.2
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
path - 1.9.0 1.9.0
path_provider_android - 2.2.4 2.2.4
path_provider_foundation - 2.3.2 2.3.2
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.2.1 2.2.1
platform - 3.1.4 3.1.4
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.99 0.0.99
vector_math - 2.1.4 2.1.4
win32 - 5.5.0 5.5.0
xdg_directories - 1.0.4 1.0.4

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

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

Analyzed with Pana 0.22.3, Flutter 3.19.6, Dart 3.3.4.

Check the analysis log for details.

2
likes
100
pub points
46%
popularity

Publisher

verified publisherskyhook.fr

This package is a type conversion generator using source_gen and inspired by Retrofit to help you manage persistent cache.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, localstore, path_provider

More

Packages that depend on cache_annotations