get Or Default
Returns the success value if this is a Success, or the defaultValue if this is a Failure.
val data: ByteArray = result.getOrDefault(byteArrayOf())Content copied to clipboard
Return
The success value or the default value.
Parameters
default Value
The value to return if this is a failure.