util/try library

Functions

tryCatch<T>(T worker(), [T? onError(dynamic e)?]) → T?
tryCatchAsync<T>(FutureOr<T> worker(), [Future<T?> onError(dynamic e)?]) Future<T?>
tryOr<T>(T worker(), T onError) → T
tryOrAsync<T>(FutureOr<T> worker(), T onError) Future<T>