presentPresentationWithIdentifier method Null safety

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

Implementation

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