copyWith method

OverrideAccounts copyWith({
  1. OverrideAccountType? type,
  2. AccountSubtype? subtype,
  3. double? startingBalance,
  4. double? forceAvailableBalance,
  5. String? currency,
  6. Meta? meta,
  7. Numbers? numbers,
  8. List<TransactionOverride>? transactions,
  9. OwnerOverride? identity,
  10. LiabilityOverride? liability,
  11. InflowModel? inflowModel,
})

Implementation

OverrideAccounts copyWith(
    {enums.OverrideAccountType? type,
    enums.AccountSubtype? subtype,
    double? startingBalance,
    double? forceAvailableBalance,
    String? currency,
    Meta? meta,
    Numbers? numbers,
    List<TransactionOverride>? transactions,
    OwnerOverride? identity,
    LiabilityOverride? liability,
    InflowModel? inflowModel}) {
  return OverrideAccounts(
      type: type ?? this.type,
      subtype: subtype ?? this.subtype,
      startingBalance: startingBalance ?? this.startingBalance,
      forceAvailableBalance:
          forceAvailableBalance ?? this.forceAvailableBalance,
      currency: currency ?? this.currency,
      meta: meta ?? this.meta,
      numbers: numbers ?? this.numbers,
      transactions: transactions ?? this.transactions,
      identity: identity ?? this.identity,
      liability: liability ?? this.liability,
      inflowModel: inflowModel ?? this.inflowModel);
}