PackageTrack
Sign in Get early access

multiple_result

Multiple results for dart. Inspired by dartz's Either and Kotlin's sealed classes

5.3.0 38K downloads/mo #1660 most downloaded on pub.dev higorlapa/result

What this package is like to depend on

Last release 5 months ago

14 Mar 2026

Release timing varies

gaps range from 3 weeks to 1.8 years

Most releases are documented

notes for 8 of 13 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

13 releases · first in 2021

1 release in the last 12 months

see the full history below

Release timeline

13 releases · Mar 2021 to Mar 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 13
  1. 5.3.0 14 Mar 2026
    Release notes

    Bug Fixes

    • Error.getOrThrow() now correctly passes <S, E> to SuccessResultNotFoundException, so toString() shows the actual types instead of dynamic.

    New Features

    • Result.tryCatch(action, onError) — static factory that wraps a potentially-throwing synchronous computation.
    • getOrElse(orElse) — returns the success value or a fallback computed from the error.
    • onSuccess(action) / onError(action) — side-effect tap methods that execute an action without transforming the result, returning this for chaining.
    • flatMapError(mapper) — symmetric counterpart to flatMap for the error channel.
    • recover(mapper) — alias for flatMapError.
    • swap() — converts Success to Error and vice versa.
    • AsyncResult<S, E> — zero-cost Future<Result<S, E>> wrapper via Dart extension types, with a full mirrored API (mapSuccess, mapError, map, flatMap, flatMapAsync, flatMapError, swap, onSuccess, onError, getOrThrow, getOrElse, tryGetSuccess, tryGetError, when, isSuccess, isError, and tryCatch).
    • AsyncResultOf<S, E> typedef alias for AsyncResult<S, E>.

    Full Changelog: v5.2.0...v5.3.0

    Open source →
  2. 5.2.0 29 Apr 2025
    Release notes

    Full Changelog: v5.1.0...v5.2.0

    Open source →
  3. 5.1.0 17 Jul 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v5.0.0...v5.1.0

    Open source →
  4. 5.0.0 10 May 2023
    Release notes

    Full Changelog: v4.0.0...v5.0.0

    Open source →
  5. 4.0.0 21 Dec 2022
    Release notes

    What's Changed

    • Revert previous releases
    • Change onSuccess and onError to whenSuccess and whenError

    Full Changelog: v3.1.0...v4.0.0

    Open source →
  6. 3.1.0 06 Dec 2022
    Release notes

    What's Changed

    Full Changelog: v3.0.0...v3.1.0

    Open source →
  7. 3.0.0 05 Dec 2022
    Release notes

    What's Changed

    • Add new operators, a Unit type for void return and AsyncResult by @jacobaraujo7 in #5

    Full Changelog: v2.0.0...v3.0.0

    Open source →
  8. 2.0.0 03 Dec 2022
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v1.0.4...v2.0.0

    Open source →
  9. 1.0.4 19 Jul 2021

    Nothing published for this version

  10. 1.0.3 02 May 2021

    Nothing published for this version

  11. 1.0.2 28 Mar 2021

    Nothing published for this version

  12. 1.0.1 26 Mar 2021

    Nothing published for this version

  13. 1.0.0 23 Mar 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive