copyWith method
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,
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,
);
}