steady 1.2.0 copy "steady: ^1.2.0" to clipboard
steady: ^1.2.0 copied to clipboard

A Result type library for Dart inspired by Rust's Result<T, E>. Provides type-safe error handling with rich utility methods.

1.2.0 #

  • Replace Freezed-generated Result and Option models with handwritten sealed classes.
  • Remove the freezed, freezed_annotation, and build_runner dependencies along with generated *.freezed.dart files.
  • Preserve value equality and hashCode, including deep collection equality behavior.
  • Fix generic variant equality to remain symmetric and consistent with hashCode.

1.1.1 #

  • Rewrite package documentation in English to satisfy pub.dev scoring checks.
  • Escape angle brackets in the top-level library dartdoc to remove the analyzer info reported by pub.dev.

1.1.0 #

  • Make Result.expect rethrow the original exception with its original stack trace.
  • Clarify callback exception behavior in Result.map, mapAsync, andThen, andThenAsync, orElse, orElseAsync, recover, recoverAsync, mapErr, and mapErrAsync.
  • Make Option.expect throw StateError.
  • Update documentation to reflect the new behavior.
  • Add tests for exception wrapping and propagation.

1.0.1 #

  • Change fold to use named parameters.

1.0.0 #

  • Initial release.
  • Add Result<T, E> for explicit success and failure handling.
  • Add Option<T> for explicit optional values.
  • Include sync and async transformation helpers, chaining, recovery, and conversion APIs.
  • Build on Freezed for immutable data types and pattern matching support.
1
likes
160
points
120
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Result type library for Dart inspired by Rust's Result<T, E>. Provides type-safe error handling with rich utility methods.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

collection

More

Packages that depend on steady