copyWith method
User
copyWith({
- bool? changePassword,
- String? photoUrl,
- bool? admin,
- bool? allowedToChangePassword,
- String? id,
- String? username,
- String? fullName,
- String? email,
- String? locale,
- String? tenantDomain,
- String? tenantName,
- String? tenantLocale,
- bool? blocked,
- String? authenticationType,
- String? description,
- List? properties,
- Integration? integration,
- String? discriminator,
Implementation
User copyWith({
bool? changePassword,
String? photoUrl,
bool? admin,
bool? allowedToChangePassword,
String? id,
String? username,
String? fullName,
String? email,
String? locale,
String? tenantDomain,
String? tenantName,
String? tenantLocale,
bool? blocked,
String? authenticationType,
String? description,
List<dynamic>? properties,
Integration? integration,
String? discriminator,
}) {
return User(
changePassword: changePassword ?? this.changePassword,
photoUrl: photoUrl ?? this.photoUrl,
admin: admin ?? this.admin,
allowedToChangePassword:
allowedToChangePassword ?? this.allowedToChangePassword,
id: id ?? this.id,
username: username ?? this.username,
fullName: fullName ?? this.fullName,
email: email ?? this.email,
locale: locale ?? this.locale,
tenantDomain: tenantDomain ?? this.tenantDomain,
tenantName: tenantName ?? this.tenantName,
tenantLocale: tenantLocale ?? this.tenantLocale,
blocked: blocked ?? this.blocked,
authenticationType: authenticationType ?? this.authenticationType,
description: description ?? this.description,
properties: properties ?? this.properties,
integration: integration ?? this.integration,
discriminator: discriminator ?? this.discriminator,
);
}