pure_result 0.1.2 copy "pure_result: ^0.1.2" to clipboard
pure_result: ^0.1.2 copied to clipboard

A sealed Result<T, E> package for Dart and Flutter to model success and failure explicitly in app, package, and async domain error handling.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add pure_result

With Flutter:

 $ flutter pub add pure_result

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  pure_result: ^0.1.2

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:pure_result/pure_result.dart';
1
likes
150
points
179
downloads

Publisher

verified publisheropenmindopen.world

Weekly Downloads

A sealed Result<T, E> package for Dart and Flutter to model success and failure explicitly in app, package, and async domain error handling.

Repository (GitHub)
View/report issues

Topics

#result #functional #error-handling

Documentation

API reference

License

MIT (license)

More

Packages that depend on pure_result