copyWith method

UserDetails copyWith({
  1. String? self,
  2. String? name,
  3. String? key,
  4. String? accountId,
  5. String? emailAddress,
  6. Map<String, dynamic>? avatarUrls,
  7. String? displayName,
  8. bool? active,
  9. String? timeZone,
  10. String? accountType,
})

Implementation

UserDetails copyWith(
    {String? self,
    String? name,
    String? key,
    String? accountId,
    String? emailAddress,
    Map<String, dynamic>? avatarUrls,
    String? displayName,
    bool? active,
    String? timeZone,
    String? accountType}) {
  return UserDetails(
    self: self ?? this.self,
    name: name ?? this.name,
    key: key ?? this.key,
    accountId: accountId ?? this.accountId,
    emailAddress: emailAddress ?? this.emailAddress,
    avatarUrls: avatarUrls ?? this.avatarUrls,
    displayName: displayName ?? this.displayName,
    active: active ?? this.active,
    timeZone: timeZone ?? this.timeZone,
    accountType: accountType ?? this.accountType,
  );
}