fabrik_result 1.0.0 copy "fabrik_result: ^1.0.0" to clipboard
fabrik_result: ^1.0.0 copied to clipboard

A lightweight toolkit for functional-style types like Either, built for clarity and real-world use.

Changelog #

All notable changes to this package are documented in this file.

The format is based on Keep a Changelog, and this project adheres to semantic versioning.


1.0.0 #

This is a major, stabilizing release that defines the long-term scope and philosophy of fabrik_result.

The package has been refined to provide a minimal, explicit, and predictable result-handling toolkit for Dart and Flutter applications, without introducing unnecessary functional abstractions.

Added #

  • Either<L, R> for explicit success and failure modeling
    • Left and Right sealed variants
    • fold for exhaustive handling
    • Convenience helpers for common access patterns:
      • onRight
      • onLeft
      • rightOrNull
      • leftOrNull
  • Option<T> for modeling presence or absence of a value
    • Some and None sealed variants
    • fold, isSome, and isNone
    • Factory helpers some() and none()
  • Unit type as a typed replacement for void
    • Singleton unit instance for ergonomic usage
  • Comprehensive documentation and examples
  • Full test coverage for all core types

0.1.1 #

  • Fixed repository URL
  • Minor documentation corrections

0.1.0 #

  • Initial public release
  • Introduced Either<L, R> with Left, Right, and fold
  • Introduced Unit as a typed alternative to void
3
likes
160
points
283
downloads

Publisher

verified publisherfabriktool.com

Weekly Downloads

A lightweight toolkit for functional-style types like Either, built for clarity and real-world use.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fabrik_result