Skip to content

Non-nullable instance field 'user' must be initialized. Try adding an initializer expression, or a generative constructor that initializes it, or mark it  #3

Description

@vedantbahel

I tried implementing the same but it gives me error:
"Non-nullable instance field 'user' must be initialized.
Try adding an initializer expression, or a generative constructor that initializes it, or mark it"

for

User user;
Timer timer;

And if I further do

User? user;
Timer? timer;

then it throw exception
No implementation found for method Auth#registerIdTokenListener on channel plugins.flutter.io/firebase_auth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions