return_success_or_error 2.0.0
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_errorWith Flutter:
$ flutter pub add return_success_or_errorThis 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.0Alternatively, 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';