copyWith method

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

Implementation

TransactionsCategoryRule copyWith(
    {String? id,
    String? itemId,
    DateTime? createdAt,
    String? personalFinanceCategory,
    TransactionsRuleDetails? ruleDetails}) {
  return TransactionsCategoryRule(
      id: id ?? this.id,
      itemId: itemId ?? this.itemId,
      createdAt: createdAt ?? this.createdAt,
      personalFinanceCategory:
          personalFinanceCategory ?? this.personalFinanceCategory,
      ruleDetails: ruleDetails ?? this.ruleDetails);
}