result_class 1.0.0 copy "result_class: ^1.0.0" to clipboard
result_class: ^1.0.0 copied to clipboard

A type that represents either success or failure, similar to Rusts std::result.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add result_class

With Flutter:

 $ flutter pub add result_class

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

dependencies:
  result_class: ^1.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:result_class/result_class.dart';
1
likes
160
points
43
downloads

Publisher

verified publishernexam.de

Weekly Downloads

A type that represents either success or failure, similar to Rusts std::result.

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on result_class