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

checkSubscribed() - _CastError (type 'Future<List<PurchasedItem>?>' is not a subtype of type 'FutureOr<List<PurchasedItem>>' in type cast) #308

Closed
dmiedev opened this issue Aug 24, 2021 · 2 comments

Comments

@dmiedev
Copy link

dmiedev commented Aug 24, 2021

Version of flutter_inapp_purchase

5.0.2

Platforms you faced the error (IOS or Android or both?)

Both

Expected behavior

No error occurs on checkSubscribed() call

Actual behavior

_CastError (type 'Future<List<PurchasedItem>?>' is not a subtype of type 'FutureOr<List<PurchasedItem>>' in type cast) occurs on checkSubscribed() call

Tested environment (Emulator? Real Device?)

Emulator, real device

Steps to reproduce the behavior

  1. Call checkSubscribed()
@dmiedev dmiedev changed the title _checkSubscribed() - _CastError (type 'Future<List<PurchasedItem>?>' is not a subtype of type 'FutureOr<List<PurchasedItem>>' in type cast) checkSubscribed() - _CastError (type 'Future<List<PurchasedItem>?>' is not a subtype of type 'FutureOr<List<PurchasedItem>>' in type cast) Aug 24, 2021
@dmiedev
Copy link
Author

dmiedev commented Aug 30, 2021

Apparently will be fixed by #301

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

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

No branches or pull requests

1 participant