copyWith method

AccountIdentity copyWith({
  1. List<Owner>? owners,
  2. String? accountId,
  3. AccountBalance? balances,
  4. String? mask,
  5. String? name,
  6. String? officialName,
  7. AccountType? type,
  8. AccountSubtype? subtype,
  9. AccountIdentityVerificationStatus? verificationStatus,
})

Implementation

AccountIdentity copyWith(
    {List<Owner>? owners,
    String? accountId,
    AccountBalance? balances,
    String? mask,
    String? name,
    String? officialName,
    enums.AccountType? type,
    enums.AccountSubtype? subtype,
    enums.AccountIdentityVerificationStatus? verificationStatus}) {
  return AccountIdentity(
      owners: owners ?? this.owners,
      accountId: accountId ?? this.accountId,
      balances: balances ?? this.balances,
      mask: mask ?? this.mask,
      name: name ?? this.name,
      officialName: officialName ?? this.officialName,
      type: type ?? this.type,
      subtype: subtype ?? this.subtype,
      verificationStatus: verificationStatus ?? this.verificationStatus);
}