presentPlanWithIdentifier method Null safety

Future<PresentPresentationResult> presentPlanWithIdentifier(
  1. String planVendorId,
  2. [String? presentationVendorId,
  3. String? contentId]
)

Implementation

static Future<PresentPresentationResult> presentPlanWithIdentifier(
    String planVendorId,
    [String? presentationVendorId,
    String? contentId]) async {
  final result = await _channel
      .invokeMethod('presentPresentationWithIdentifier', <String, dynamic>{
    'planVendorId': planVendorId,
    'presentationVendorId': presentationVendorId,
    'contentId': contentId
  });
  return PresentPresentationResult(PLYPurchaseResult.values[result['result']],
      transformToPLYPlan(result['plan']));
}