getOrNull

fun getOrNull(): T?

Get the data or returns null if the data has been consumed.

Return

T data or null.