version 1.1.2
version: ^1.1.2 copied to clipboard

Dart native js
Flutter Android iOS Linux macOS web Windows

Provides a simple class for parsing and comparing semantic versions as defined by http://semver.org/

40
likes
90 / 100
pub points
96 %
popularity

We analyzed this package on Mar 4, 2021, and awarded it 90 pub points (of a possible 100):

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
10 / 10

10/10 points: Package has an example

  • Found example at: example/version_example.dart
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: DO use curly braces for all flow control structures.

lib/version.dart:140:7

    ╷
140 │       throw FormatException("Cannot parse empty string into version");
    │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

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

INFO: DO use curly braces for all flow control structures.

lib/version.dart:143:7

    ╷
143 │       throw FormatException("Not a properly formatted version string");
    │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/version.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.2, Dart 2.12.0.

40
likes
90
pub points
96%
popularity

Publisher

dart.ninja

Provides a simple class for parsing and comparing semantic versions as defined by http://semver.org/

Repository (GitHub)
View/report issues

License

BSD (LICENSE)

More

Packages that depend on version