return_success_or_error 3.0.1 copy "return_success_or_error: ^3.0.1" to clipboard
return_success_or_error: ^3.0.1 copied to clipboard

Usecase abstraction returning success or error, with the error type closed per feature for exhaustive handling.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add return_success_or_error

With Flutter:

 $ flutter pub add return_success_or_error

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

dependencies:
  return_success_or_error: ^3.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:return_success_or_error/return_success_or_error.dart';
5
likes
160
points
348
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Usecase abstraction returning success or error, with the error type closed per feature for exhaustive handling.

Repository (GitHub)
View/report issues

Topics

#clean-architecture #usecase #result #error-handling

License

MIT (license)

Dependencies

meta

More

Packages that depend on return_success_or_error