fabrik_result 1.0.0
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 modelingLeftandRightsealed variantsfoldfor exhaustive handling- Convenience helpers for common access patterns:
onRightonLeftrightOrNullleftOrNull
Option<T>for modeling presence or absence of a valueSomeandNonesealed variantsfold,isSome, andisNone- Factory helpers
some()andnone()
Unittype as a typed replacement forvoid- Singleton
unitinstance for ergonomic usage
- Singleton
- 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>withLeft,Right, andfold - Introduced
Unitas a typed alternative tovoid