How to get status of Firebase RealtimeDB operation?
I am trying to make a function removeCategory(categoryAddress: String) in my Firebase Repository which removes the given node from Realtime Database and emits appropriate result String as Loading, Success or Some Error occurred: [error_message] in a flow.
Although the given node gets deleted from the Database successfully but I am not receiving Success message.
This is my function inside repo:--
override fun removeCategory(categoryAddress: String)= flow {
val response = StatusString()...