copyWith method

User copyWith({
  1. bool? changePassword,
  2. String? photoUrl,
  3. bool? admin,
  4. bool? allowedToChangePassword,
  5. String? id,
  6. String? username,
  7. String? fullName,
  8. String? email,
  9. String? locale,
  10. String? tenantDomain,
  11. String? tenantName,
  12. String? tenantLocale,
  13. bool? blocked,
  14. String? authenticationType,
  15. String? description,
  16. List? properties,
  17. Integration? integration,
  18. 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,
  );
}