Assignments done inside ValueEventListeners of Firebase database is not being reflected
问题 I have some global variables whose values need to be updated dynamically as per the database contains. So I tried using ValueEventListener() I can successfully read the intended value and show that in the Log. But unfortunately when I try to store that value in the previously declared some global variable it dose not work m though it dose not show any error, but it dose fail to store the intended value(I am giving the code where , you can find a Log message to show the size of the list after