The argument type 'Object?' can't be assigned to the parameter type 'User' – Flutter
I'm trying to manage the users roles using firebase auth and firestore but when i try to pass the snapshot.data to the class i create to save the user date in firestore i got this error. i followed a tutorial…