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

Wrong Pub dev documentation #1260

Open
IagoAntunes opened this issue Nov 19, 2023 · 0 comments
Open

Wrong Pub dev documentation #1260

IagoAntunes opened this issue Nov 19, 2023 · 0 comments

Comments

@IagoAntunes
Copy link

There is an error in the pub.dev documentation that can hinder beginners.

Here you can see that the documentation suggests this code,
Documentation error

But when putting this in the code it is possible to see that it does not work due to the lack of 'await' in the documentation
Error code

The correct thing would be

final catsBox = await collection.openBox<Map>('cats');
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

1 participant