valid_value_objects 0.3.1+1 copy "valid_value_objects: ^0.3.1+1" to clipboard
valid_value_objects: ^0.3.1+1 copied to clipboard

Dart package to create immutable validated value objects with the benefit of type safety and code readability.

4
likes
120/ 140
pub points
10%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

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: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

59 out of 104 API elements (56.7 %) have documentation comments.

Some symbols that are missing documentation: valid_value_objects, valid_value_objects.EmailAddress, valid_value_objects.EmailAddress.toJson, valid_value_objects.FirstName, valid_value_objects.FirstName.toJson.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

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

INFO: The import of '../src/value_exceptions.dart' is unnecessary because all of the used elements are also provided by the import of 'package:valid_value_objects/valid_value_objects.dart'.

lib/src/phone_number.dart:4:8

  ╷
4 │ import '../src/value_exceptions.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/phone_number.dart

INFO: The import of '../src/value_object.dart' is unnecessary because all of the used elements are also provided by the import of 'package:valid_value_objects/valid_value_objects.dart'.

lib/src/phone_number.dart:5:8

  ╷
5 │ import '../src/value_object.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/phone_number.dart

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

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

Package Constraint Compatible Latest
meta ^1.3.0 1.14.0 1.14.0
string_validator ^0.3.0 0.3.0 1.0.2

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

The constraint `^0.3.0` on string_validator does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions string_validator to update the constraint.

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

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

4
likes
120
pub points
10%
popularity

Publisher

unverified uploader

Dart package to create immutable validated value objects with the benefit of type safety and code readability.

Repository (GitLab)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

meta, string_validator

More

Packages that depend on valid_value_objects