pure_result 0.1.2
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_resultWith Flutter:
$ flutter pub add pure_resultThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
pure_result: ^0.1.2Alternatively, 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';