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

discontinued

resultk.dart impl of Result.kt

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.

0
likes
10
pub points
0%
popularity

Publisher

unverified uploader

resultk.dart impl of Result.kt

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on resultk