SKPaymentTransactionWrapper constructor

SKPaymentTransactionWrapper({
  1. required SKPaymentWrapper payment,
  2. required SKPaymentTransactionStateWrapper transactionState,
  3. SKPaymentTransactionWrapper? originalTransaction,
  4. double? transactionTimeStamp,
  5. String? transactionIdentifier,
  6. SKError? error,
})

Creates a new SKPaymentTransactionWrapper with the provided information.

Implementation

// TODO(stuartmorgan): Temporarily ignore const warning in other parts of the
// federated package, and remove this.
// ignore: prefer_const_constructors_in_immutables
SKPaymentTransactionWrapper({
  required this.payment,
  required this.transactionState,
  this.originalTransaction,
  this.transactionTimeStamp,
  this.transactionIdentifier,
  this.error,
});