getOrNull

fun getOrNull(): T?

A method to get the result of the operation if the operation is completed successfully, or null if an error occurs.

Return

The value as a result of the operation, or null if an error occurs.