In the current implementation, this:
produces the following code:
revenue_cat.offerings!.current!.getPackage('premium-annual')!.storeProduct.priceString
Most of the time, this is fine. However, sometimes, RevenueCat doesn't retrieve any information (as when the app is offline).
This then generates unhandled null check errors
:
How can I test if revenue_cat.offerings
is not null and not empty, and if revenue_cat.offerings.current is not null ?