presentProductWithIdentifier static method
Implementation
static Future<PresentPresentationResult> presentProductWithIdentifier(
String productVendorId,
{String? presentationVendorId,
String? contentId,
bool isFullscreen = false}) async {
final result = await _channel
.invokeMethod('presentProductWithIdentifier', <String, dynamic>{
'productVendorId': productVendorId,
'presentationVendorId': presentationVendorId,
'contentId': contentId,
'isFullscreen': isFullscreen
});
PLYPlan? plan;
if (!result['plan'].isEmpty) plan = transformToPLYPlan(result['plan']);
return PresentPresentationResult(
PLYPurchaseResult.values[result['result']], plan);
}