Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs can be null #26

Open
notorioustaki opened this issue Mar 28, 2022 · 1 comment
Open

docs can be null #26

notorioustaki opened this issue Mar 28, 2022 · 1 comment

Comments

@notorioustaki
Copy link

final messages = snapshot.data.docs;
it crashes because docs can be null , any solution ? , i tried to add null check like this : snapshit.data.!docs; but still the same problem

@deepraj02
Copy link

deepraj02 commented Mar 28, 2022

Try this method
final message =snapshot.data!.docs;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants