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

Usecase abstraction returning success or error from a call made by the data source.

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: ^2.0.0

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
219
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Usecase abstraction returning success or error from a call made by the data source.

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