copyWith method

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

Implementation

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