tryOrNull<T> function

T? tryOrNull<T>(
  1. 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);