Result.dart

CI codecov

This project is an implement of Kotlin/Result.kt for dart.

Example


final Result<String> result = runCatching(()=> xxxx);
if(result.isSucess) {
    // do if succeed
}
result.onSuccess((v) {
    // do if succeed
});
result.onFailure((e) {
  // do if failure
});

License

see license file.

Libraries

resultk