this is the exception
# flutter-devšŸ”„
l
this is the exception
t
Let's use this thread so we won't derail the channel.
It looks like your method is returning null. Are you checking if the object shouldnt return null?
l
Okay, thank you
No I didn't check that
Do you think there's an error here?
This is the method that's supposed to return the object, I'm trying to avoid returning a future
t
I doubt if it works.
Try printing to see if user is returned.
Don't hook it with the UI yet.
First of all make sure the user is returned.
l
Okay
Okay I just tried that and so far, it gets the user within the then block but doesn't return it
And returning within the then block is not executing