either_dart 1.0.0 copy "either_dart: ^1.0.0" to clipboard
either_dart: ^1.0.0 copied to clipboard

Error handler library for type-safe and easy work with errors on Dart and Flutter. Either is an alternative to Nullable value and Exceptions.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add either_dart
copied to clipboard

With Flutter:

 $ flutter pub add either_dart
copied to clipboard

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

dependencies:
  either_dart: ^1.0.0
copied to clipboard

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:either_dart/either.dart';
copied to clipboard
153
likes
150
points
64.2k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.13 - 2025.03.28

Error handler library for type-safe and easy work with errors on Dart and Flutter. Either is an alternative to Nullable value and Exceptions.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on either_dart