copyWith method

User copyWith({
  1. String? accountId,
  2. UserAccountType? accountType,
  3. bool? active,
  4. SimpleListWrapperApplicationRole? applicationRoles,
  5. AvatarUrlsBean? avatarUrls,
  6. String? displayName,
  7. String? emailAddress,
  8. String? expand,
  9. SimpleListWrapperGroupName? groups,
  10. String? key,
  11. String? locale,
  12. String? name,
  13. String? self,
  14. String? timeZone,
})

Implementation

User copyWith(
    {String? accountId,
    UserAccountType? accountType,
    bool? active,
    SimpleListWrapperApplicationRole? applicationRoles,
    AvatarUrlsBean? avatarUrls,
    String? displayName,
    String? emailAddress,
    String? expand,
    SimpleListWrapperGroupName? groups,
    String? key,
    String? locale,
    String? name,
    String? self,
    String? timeZone}) {
  return User(
    accountId: accountId ?? this.accountId,
    accountType: accountType ?? this.accountType,
    active: active ?? this.active,
    applicationRoles: applicationRoles ?? this.applicationRoles,
    avatarUrls: avatarUrls ?? this.avatarUrls,
    displayName: displayName ?? this.displayName,
    emailAddress: emailAddress ?? this.emailAddress,
    expand: expand ?? this.expand,
    groups: groups ?? this.groups,
    key: key ?? this.key,
    locale: locale ?? this.locale,
    name: name ?? this.name,
    self: self ?? this.self,
    timeZone: timeZone ?? this.timeZone,
  );
}