https://linen.dev logo
#flutter-dev🔥
Title
# flutter-dev🔥
l

Lolade

08/04/2021, 12:40 PM
this is the exception
t

Temi Ajiboye

08/04/2021, 12:50 PM
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

Lolade

08/04/2021, 12:52 PM
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

Temi Ajiboye

08/04/2021, 12:56 PM
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

Lolade

08/04/2021, 12:59 PM
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