copyWith method

AssetReportTransaction copyWith({
  1. String? dateTransacted,
  2. CreditCategory? creditCategory,
  3. AssetReportTransactionTransactionType? transactionType,
  4. String? pendingTransactionId,
  5. String? categoryId,
  6. List<String>? category,
  7. Location? location,
  8. PaymentMeta? paymentMeta,
  9. String? accountOwner,
  10. String? name,
  11. String? originalDescription,
  12. String? accountId,
  13. double? amount,
  14. String? isoCurrencyCode,
  15. String? unofficialCurrencyCode,
  16. DateTime? date,
  17. bool? pending,
  18. String? transactionId,
  19. String? merchantName,
  20. String? checkNumber,
})

Implementation

AssetReportTransaction copyWith(
    {String? dateTransacted,
    CreditCategory? creditCategory,
    enums.AssetReportTransactionTransactionType? transactionType,
    String? pendingTransactionId,
    String? categoryId,
    List<String>? category,
    Location? location,
    PaymentMeta? paymentMeta,
    String? accountOwner,
    String? name,
    String? originalDescription,
    String? accountId,
    double? amount,
    String? isoCurrencyCode,
    String? unofficialCurrencyCode,
    DateTime? date,
    bool? pending,
    String? transactionId,
    String? merchantName,
    String? checkNumber}) {
  return AssetReportTransaction(
      dateTransacted: dateTransacted ?? this.dateTransacted,
      creditCategory: creditCategory ?? this.creditCategory,
      transactionType: transactionType ?? this.transactionType,
      pendingTransactionId: pendingTransactionId ?? this.pendingTransactionId,
      categoryId: categoryId ?? this.categoryId,
      category: category ?? this.category,
      location: location ?? this.location,
      paymentMeta: paymentMeta ?? this.paymentMeta,
      accountOwner: accountOwner ?? this.accountOwner,
      name: name ?? this.name,
      originalDescription: originalDescription ?? this.originalDescription,
      accountId: accountId ?? this.accountId,
      amount: amount ?? this.amount,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      unofficialCurrencyCode:
          unofficialCurrencyCode ?? this.unofficialCurrencyCode,
      date: date ?? this.date,
      pending: pending ?? this.pending,
      transactionId: transactionId ?? this.transactionId,
      merchantName: merchantName ?? this.merchantName,
      checkNumber: checkNumber ?? this.checkNumber);
}