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