util/safely library

Functions

getValueSafely<T>(T? getValueAction()) → T?
run getValueAction with try-catch return the result of getValueAction if no exception occurs, otherwise return null instead.