resultk 1.0.0
resultk: ^1.0.0 copied to clipboard
resultk.dart impl of Result.kt
Result.dart #
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
});
copied to clipboard
License #
see license file.