resultx 1.0.1
resultx: ^1.0.1 copied to clipboard
A Future Aware Result class to grcefully handle success and error and their Futures without the need to await on each step. It focuses on functional usage and method chaining to handle the results.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add resultxThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
resultx: ^1.0.1Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:resultx/resultx.dart';