copyWith method

HybridTransaction copyWith({
  1. HybridTransactionType? type,
  2. String? parentTransactionId,
  3. String? accountName,
  4. String? payeeName,
  5. String? categoryName,
  6. String? id,
  7. DateTime? date,
  8. num? amount,
  9. String? memo,
  10. HybridTransactionCleared? cleared,
  11. bool? approved,
  12. HybridTransactionFlagColor? flagColor,
  13. String? accountId,
  14. String? payeeId,
  15. String? categoryId,
  16. String? transferAccountId,
  17. String? transferTransactionId,
  18. String? matchedTransactionId,
  19. String? importId,
  20. String? importPayeeName,
  21. String? importPayeeNameOriginal,
  22. bool? deleted,
})

Implementation

HybridTransaction copyWith(
    {enums.HybridTransactionType? type,
    String? parentTransactionId,
    String? accountName,
    String? payeeName,
    String? categoryName,
    String? id,
    DateTime? date,
    num? amount,
    String? memo,
    enums.HybridTransactionCleared? cleared,
    bool? approved,
    enums.HybridTransactionFlagColor? flagColor,
    String? accountId,
    String? payeeId,
    String? categoryId,
    String? transferAccountId,
    String? transferTransactionId,
    String? matchedTransactionId,
    String? importId,
    String? importPayeeName,
    String? importPayeeNameOriginal,
    bool? deleted}) {
  return HybridTransaction(
      type: type ?? this.type,
      parentTransactionId: parentTransactionId ?? this.parentTransactionId,
      accountName: accountName ?? this.accountName,
      payeeName: payeeName ?? this.payeeName,
      categoryName: categoryName ?? this.categoryName,
      id: id ?? this.id,
      date: date ?? this.date,
      amount: amount ?? this.amount,
      memo: memo ?? this.memo,
      cleared: cleared ?? this.cleared,
      approved: approved ?? this.approved,
      flagColor: flagColor ?? this.flagColor,
      accountId: accountId ?? this.accountId,
      payeeId: payeeId ?? this.payeeId,
      categoryId: categoryId ?? this.categoryId,
      transferAccountId: transferAccountId ?? this.transferAccountId,
      transferTransactionId:
          transferTransactionId ?? this.transferTransactionId,
      matchedTransactionId: matchedTransactionId ?? this.matchedTransactionId,
      importId: importId ?? this.importId,
      importPayeeName: importPayeeName ?? this.importPayeeName,
      importPayeeNameOriginal:
          importPayeeNameOriginal ?? this.importPayeeNameOriginal,
      deleted: deleted ?? this.deleted);
}