PurchaseList constructor

PurchaseList({
  1. Iterable<ValidatedPurchase>? validatedPurchases,
  2. String? cursor,
})

Implementation

factory PurchaseList({
  $core.Iterable<ValidatedPurchase>? validatedPurchases,
  $core.String? cursor,
}) {
  final _result = create();
  if (validatedPurchases != null) {
    _result.validatedPurchases.addAll(validatedPurchases);
  }
  if (cursor != null) {
    _result.cursor = cursor;
  }
  return _result;
}