-
Notifications
You must be signed in to change notification settings - Fork 177
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
getProducts(), type 'List<dynamic>' is not a subtype of type 'FutureOr<List<Product>>' #163
Comments
Can you share the exception? I would like to look at the stacktrace. Thanks! |
Actually, I just managed to reproduce it. I will look into it |
@vegaro I think the problem is that the typing of invokeMethod has been removed, so that turns into dynamic. Dynamic doesn't statically check the .map, and fails to infer the output type as Probably bringing the |
As you say, bringing back
I was actually just looking at how to disable the |
I am preparing a release 3.0.1 that should include the fix. Thanks for reporting and sorry about the trouble |
@vegaro this is how to disable that lint:
Would you like a PR? |
Thanks @nohli ! I actually have a branch and have started fixing a bunch of errors. There are so many though 🤦 |
This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports. |
Hi everyone.
In my app, i have added the method "Purchases.getProducts(...)" but this throws a TypeError Exception.
VScode shows me that the corrupted file is "purchases_flutter.dart".
Today I upgraded the package to 3.0.0; before today, i used 2.0.2
My code:
The text was updated successfully, but these errors were encountered: