Channels
success-and-brags
ccn-ilorin
ccn-ghana
staff-channel
resources
feed
š»jobs
new-clanner
š„project-showcase
designš„
new-to-tech-guide-room
html-css-beginners
frontend-dev
react-reactnativeš„³
blockchain-development
technical-writingš
welcome-and-rules
general
flutter-devš„
backend-dev
Powered by
#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
Post