tryOrNull<T> function
T?
tryOrNull<T>(
- T closure()
Returns the result of the given closure
, or null if an Exception was raised.
Implementation
T? tryOrNull<T>(T Function() closure) => tryOr(null, closure);