getCurrentOfferingForPlacement static method
Retrieves a current offering for a placement identifier, use this to access offerings defined by targeting placements configured in the RevenueCat dashboard.
Implementation
static Future<Offering?> getCurrentOfferingForPlacement(
String placementIdentifier,
) async {
final res = await _channel.invokeMethod(
'getCurrentOfferingForPlacement',
{'placementIdentifier': placementIdentifier},
);
if (res != null) {
return Offering.fromJson(
Map<String, dynamic>.from(res),
);
} else {
return null;
}
}