nullAsLoading

inline fun <T, E> ResourceState<T, E>?.nullAsLoading(): ResourceState<T, E>