fluent_result 1.0.0
fluent_result: ^1.0.0 copied to clipboard
A new Flutter package project.
Fluent Result #
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('Fail reason');
Generic Result #
Result<MyObject> result = Result.success(value: MyObject());
final value = result.value;
Contributing #
We accept the following contributions:
- Improving documentation
- Reporting issues
- Fixing bugs
maintainers #
- Andrew Piterov