toString method

  1. @override
String toString()
override

This returns transaction dates in ISO 8601 format.

Implementation

@override
String toString() {
  return 'productId: $productId, '
      'transactionId: $transactionId, '
      'transactionDate: ${transactionDate?.toIso8601String()}, '
      'transactionReceipt: $transactionReceipt, '
      'purchaseToken: $purchaseToken, '

      /// android specific
      'dataAndroid: $dataAndroid, '
      'signatureAndroid: $signatureAndroid, '
      'isAcknowledgedAndroid: $isAcknowledgedAndroid, '
      'autoRenewingAndroid: $autoRenewingAndroid, '
      'purchaseStateAndroid: $purchaseStateAndroid, '

      /// ios specific
      'originalTransactionDateIOS: ${originalTransactionDateIOS?.toIso8601String()}, '
      'originalTransactionIdentifierIOS: $originalTransactionIdentifierIOS, '
      'transactionStateIOS: $transactionStateIOS';
}