copyWith method
UserEntity
copyWith(
{ - String? uid,
- String? name,
- String? lastName,
- String? email,
- String? password,
- String? documentType,
- String? documentNumber,
- String? phone,
- String? address,
- String? companyName,
- String? organizationUidFk,
- int? roleIdFk,
- DateTime? createdAt,
})
Implementation
UserEntity copyWith({
String? uid,
String? name,
String? lastName,
String? email,
String? password,
String? documentType,
String? documentNumber,
String? phone,
String? address,
String? companyName,
String? organizationUidFk,
int? roleIdFk,
DateTime? createdAt,
}) =>
UserEntity(
uid: uid ?? this.uid,
name: name ?? this.name,
lastName: lastName ?? this.lastName,
email: email ?? this.email,
password: password ?? this.password,
documentType: documentType ?? this.documentType,
documentNumber: documentNumber ?? this.documentNumber,
phone: phone ?? this.phone,
address: address ?? this.address,
organizationUidFk: organizationUidFk ?? this.organizationUidFk,
companyName: companyName ?? this.companyName,
roleIdFk: roleIdFk ?? this.roleIdFk,
createdAt: createdAt ?? this.createdAt,
);