copyWith method

UserEntity copyWith({
  1. String? uid,
  2. String? name,
  3. String? lastName,
  4. String? email,
  5. String? password,
  6. String? documentType,
  7. String? documentNumber,
  8. String? phone,
  9. String? address,
  10. String? companyName,
  11. String? organizationUidFk,
  12. int? roleIdFk,
  13. 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,
    );