flatMapRight
flatMapLatest the Flow
Parameters
function to run on Either.Right value and that returns Flow
Usecase for it: we have 2 functions, one of it returns Flow
Example1:
fun getUserId(): Either
data class MeWithFriends(val myId: ID, val friends: List
val observeMeWithFriends: Flow
Example2:
fun getUserId(): Either
data class MeWithFriends(val myId: ID, val friends: List
val observeMeWithFriends: Flow