snapshot 0.2.0
snapshot: ^0.2.0 copied to clipboard

A library that can be used to implement data classes and simplifies conversion of JSON to data classes

4
likes
120 / 130
pub points
71 %
popularity

We analyzed this package on Apr 22, 2021, and awarded it 120 pub points (of a possible 130):

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/snapshot.dart

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

  • 51 out of 71 API elements (71.8 %) 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 3 issues. Showing the first 2:

INFO: The operand can't be null, so the condition is always true.

lib/src/json_pointer.dart:4:61

  ╷
4 │   JsonPointer.fromSegments(this.segments) : assert(segments != null);
  │                                                             ^^^^^^^
  ╵

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

INFO: The operand can't be null, so the condition is always false.

lib/src/snapshot_view.dart:166:14

    ╷
166 │     if (path == null) {
    │              ^^^^^^^
    ╵

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

Support up-to-date dependencies
20 / 20

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

PackageConstraintCompatibleLatest
collection^1.15.01.15.01.15.0
intl^0.17.00.17.00.17.0
meta^1.3.01.3.01.3.0
path^1.8.01.8.01.8.0
quiver^3.0.03.0.13.0.1
rxdart^0.26.00.26.00.26.0
Transitive dependencies
PackageConstraintCompatibleLatest
clock-1.1.01.1.0
matcher-0.12.100.12.10
stack_trace-1.10.01.10.0

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

Support sound null safety
20 / 20

20/20 points: Package and dependencies are fully migrated to null safety!

Analysed with Pana 0.15.4, Dart 2.12.2.

4
likes
120
pub points
71%
popularity

Publisher

appsup.be

A library that can be used to implement data classes and simplifies conversion of JSON to data classes

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

collection, intl, meta, path, quiver, rxdart

More

Packages that depend on snapshot