maybe_just_nothing 0.2.0 copy "maybe_just_nothing: ^0.2.0" to clipboard
maybe_just_nothing: ^0.2.0 copied to clipboard

outdated

Yet another variation of the good old Maybe monad with eager execution written in Dart. Or maybe it's just nothing.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased #

0.2.0 - 2020-07-11 #

Added #

  • Method fallback()
  • Equality operator support

Changed #

  • Method now accepts a value instead of a function. The old method is available as
  • Method chain() now accepts a value instead of a function. The old method is available as fallback()

Removed #

  • Method filter()

0.1.9 - 2020-06-27 #

Changed #

  • ifPresent() and ifNothing() return Maybe

0.1.8 - 2020-06-13 #

Added #

  • const constructor to Nothing

0.1.7 - 2020-06-13 #

Changed #

  • Relaxed cast() type constraint

0.1.6 - 2020-06-13 #

Added #

  • chain() method

0.1.5 - 2020-06-13 #

Fixed #

  • "Future was not exported" in tests

0.1.4 - 2020-06-13 #

Changed #

  • Just and Nothing return more narrow types in certain cases

0.1.3 - 2020-06-13 #

Fixed #

  • Future was not exported

0.1.2 - 2020-06-13 #

Changed #

  • relaxed min Dart version to 2.0.0
  • minor readme fixes

0.1.1 - 2020-06-13 #

Added #

  • where is an alias for filter

0.1.0 - 2020-05-24 #

Added #

  • New methods: cast(), orAsync(), orGetAsync(), flatMap(), merge()

0.0.1 - 2020-05-23 #

Added #

  • Initial version.
11
likes
0
points
187k
downloads

Publisher

verified publisherkarapetov.com

Weekly Downloads

Yet another variation of the good old Maybe monad with eager execution written in Dart. Or maybe it's just nothing.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on maybe_just_nothing