rawPaywalls static method
A list of paywalls, potentially altered based on the user's involvement in A/B testing, if any.
Important: This function doesn't await until inner native products are loaded from the stores.
That means paywalls may or may not have inner SKProduct
/ ProductDetails
at the time you call this function.
Important: This function will return empty array if user is not yet loaded, or paywalls are not set up in the Product Hub.
To get paywalls with awaiting for native products, use await Apphud.paywalls() or Apphud.paywallsDidLoadCallback(...) functions.
Implementation
static Future<ApphudPaywalls?> rawPaywalls() async {
final Map<dynamic, dynamic>? json =
await _channel.invokeMethod<Map<dynamic, dynamic>>('rawPaywalls');
return json != null ? ApphudPaywalls.fromJson(json) : null;
}