DEV Community

ADEKOLA Abdwahab
ADEKOLA Abdwahab

Posted on

26

'List<Object?>' is not a subtype of type 'PigeonUserDetails?'

After I rebuilt my project to resolve an issue with a @freezed class my Google login feature started throwing errors.

'List<Object?>' is not a subtype of type 'PigeonUserDetails?'
Enter fullscreen mode Exit fullscreen mode

I saw the issue on github, sadly the solution provided there did not work.

Doing some debugprints helped a bit but I could not see the status of the line that is failing after the last debugprint, hence I opted for the debugger, and then placed some breaking points.

I realized that there was no signInWithCredential method but there was currentUser which had the details of the logging-in user

//before
 UserCredential result = await auth.signInWithCredential(authCredential);

//after
 User? result =  auth.currentUser;//signInWithCredential(authCredential);
Enter fullscreen mode Exit fullscreen mode

Top comments (5)

Collapse
 
lewy_mbuba_9c60ce6bb1e74d profile image
lewy mbuba

Hello can you kindly explain in simple terms? I am a beginner in programming who is currently facing the exact problem. I am currently learning flutter and when I try to register my user to my app I get the error;'List' is not a subtype of type 'PigeonUserDetails?'.The user is registered in firebase but I am not getting the verification code on the email.
kindly help me out.

Collapse
 
codarbind profile image
ADEKOLA Abdwahab

So sorry, I am just seeing your comment. I am trying to say that the wrong method was being used.

I hope that you have resolved this already, I would have asked for a screenshot of that part of your code.

Collapse
 
hiu_hongtrung_307bd6a6 profile image
Hiếu Hoàng Trung

I still get the same error. Please help me get rid of it.

Thread Thread
 
codarbind profile image
ADEKOLA Abdwahab

Can you send a screenshot of that part of the code

Thread Thread
 
tuillituti profile image
tuillisqk

Image description

Sentry blog image

The Visual Studio App Center’s retiring

But sadly….you’re not. See how to make the switch to Sentry for all your crash reporting needs.

Read more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay