copyWith method
UserDetails
copyWith(
{ - String? accountId,
- String? accountType,
- bool? active,
- AvatarUrlsBean? avatarUrls,
- String? displayName,
- String? emailAddress,
- String? key,
- String? name,
- String? self,
- 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,
);
}