fluent_result 3.0.0 copy "fluent_result: ^3.0.0" to clipboard
fluent_result: ^3.0.0 copied to clipboard

outdated

Result is an object indicating success or failure of an operation.

Fluent Result #

Pub Version

Fluent Result is a lightweight Dart library developed to solve a common problem. It returns an object indicating success or failure of an operation instead of throwing/using exceptions.

Usage #

Simple Non-Generic Result #

Result result = Result.success();
Result result = Result.fail('a fail reason');

Generic Result #

ResultOf<MyObject> result = ResultOf.success(MyObject());
MyObject value = result.value;
ResultOf<MyObject> result = ResultOf.fail<MyObject>('a fail reason');
MyObject value = result.value;

Contributing #

We accept the following contributions:

  • Improving documentation
  • Reporting issues
  • Fixing bugs

Maintainers #

  • Andrew Piterov
15
likes
0
pub points
84%
popularity

Publisher

verified publisherdevcraft.ninja

Result is an object indicating success or failure of an operation.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on fluent_result