positive_num 2.0.0 copy "positive_num: ^2.0.0" to clipboard
positive_num: ^2.0.0 copied to clipboard

An implementation of immutable value objects PositiveInt and PositiveDouble that encapsulate a positive number of type int or double.

2.0.0 #

  • Added PositiveInt and PositiveDouble classes which are final and can't be extended or implemented.
  • PositiveNum marked as sealed now
  • PositiveNum.create() now is a factory that creates either PositiveInt or PositiveDouble.
  • Updated tests, documentation, description, and example

1.0.8+1 #

  • Small update of the description in pubspec.yaml

1.0.8 #

  • Re-wrote the project description to more informative
  • Added 1 more test (to ensure that PositiveNum can be created from a reference with num, int, or double type)
  • Refactored tests (use final instead var, use const instead of final, rename elements)
  • Fixed typos

1.0.7+1 #

  • Update project description, Readme, typos in test, text in example

1.0.7 #

  • Refactor/ use destructuring of records

1.0.6 #

  • Verify Github actions complete successfully when code is compiling

1.0.5 #

  • Verify Github actions fail when code is not compiling

1.0.4 #

  • Configure the "publish" workflow to pub.dev

1.0.3 #

  • Add Github Actions

1.0.2 #

  • Skip the 1.0.2 version

1.0.1 #

  • Upload License.
  • Update README.md

1.0.0 #

  • Initial version.
4
likes
150
pub points
0%
popularity

Publisher

unverified uploader

An implementation of immutable value objects PositiveInt and PositiveDouble that encapsulate a positive number of type int or double.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on positive_num