record_result 1.0.0+1 copy "record_result: ^1.0.0+1" to clipboard
record_result: ^1.0.0+1 copied to clipboard

record_result is a Dart package that provides a type called Result for handling the outcomes of operations. It can represent either a successful result or a failure, allowing you to handle errors in a [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add record_result

With Flutter:

 $ flutter pub add record_result

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

dependencies:
  record_result: ^1.0.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:record_result/record_result.dart';
5
likes
140
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

record_result is a Dart package that provides a type called Result for handling the outcomes of operations. It can represent either a successful result or a failure, allowing you to handle errors in a more functional and expressive way.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable

More

Packages that depend on record_result