copyWithWrapped method

TransactionsCategoryRule copyWithWrapped({
  1. Wrapped<String?>? id,
  2. Wrapped<String?>? itemId,
  3. Wrapped<DateTime?>? createdAt,
  4. Wrapped<String?>? personalFinanceCategory,
  5. Wrapped<TransactionsRuleDetails?>? ruleDetails,
})

Implementation

TransactionsCategoryRule copyWithWrapped(
    {Wrapped<String?>? id,
    Wrapped<String?>? itemId,
    Wrapped<DateTime?>? createdAt,
    Wrapped<String?>? personalFinanceCategory,
    Wrapped<TransactionsRuleDetails?>? ruleDetails}) {
  return TransactionsCategoryRule(
      id: (id != null ? id.value : this.id),
      itemId: (itemId != null ? itemId.value : this.itemId),
      createdAt: (createdAt != null ? createdAt.value : this.createdAt),
      personalFinanceCategory: (personalFinanceCategory != null
          ? personalFinanceCategory.value
          : this.personalFinanceCategory),
      ruleDetails:
          (ruleDetails != null ? ruleDetails.value : this.ruleDetails));
}