'Set data for every user after the login?

I want every user to have a unique number when he enters this number is attached to his google provider email in firebase data.

Like user, A has number:324492 and no one has the same number but him

ps: I just want to know the method I will use to make something like this and I will do the rest and if the user can make calls with the number later or not.

enter image description here



Solution 1:[1]

After login you save user Number in shared-preference, and when user logout remove from shared preference.

But you have to check user Number in initState , if you don't login user every time

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Samu Chakraborty