neverthrow_dart 1.0.1 copy "neverthrow_dart: ^1.0.1" to clipboard
neverthrow_dart: ^1.0.1 copied to clipboard

Result and Option for Dart, with addition of FutureResult and do-notation. Inspired by fp_dart, dartz, and neverthrow for TypeScript.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add neverthrow_dart

With Flutter:

 $ flutter pub add neverthrow_dart

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

dependencies:
  neverthrow_dart: ^1.0.1

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:neverthrow_dart/neverthrow_dart.dart';
1
likes
160
points
85
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Result and Option for Dart, with addition of FutureResult and do-notation. Inspired by fp_dart, dartz, and neverthrow for TypeScript.

Repository (GitHub)
View/report issues

Topics

#result #option #error-handling #functional-programming #monad

License

MIT (license)

Dependencies

freezed_annotation

More

Packages that depend on neverthrow_dart