copyWith method

EmployeeCompanion copyWith({
  1. Value<int>? id,
  2. Value<String>? empNumber,
  3. Value<String>? name,
  4. Value<String>? email,
  5. Value<int>? employeePositionId,
  6. Value<int>? departmentId,
  7. Value<DateTime>? birthday,
  8. Value<DateTime>? hireDate,
  9. Value<String?>? imagePath,
  10. Value<String?>? address,
})

Implementation

EmployeeCompanion copyWith({
  Value<int>? id,
  Value<String>? empNumber,
  Value<String>? name,
  Value<String>? email,
  Value<int>? employeePositionId,
  Value<int>? departmentId,
  Value<DateTime>? birthday,
  Value<DateTime>? hireDate,
  Value<String?>? imagePath,
  Value<String?>? address,
}) {
  return EmployeeCompanion(
    id: id ?? this.id,
    empNumber: empNumber ?? this.empNumber,
    name: name ?? this.name,
    email: email ?? this.email,
    employeePositionId: employeePositionId ?? this.employeePositionId,
    departmentId: departmentId ?? this.departmentId,
    birthday: birthday ?? this.birthday,
    hireDate: hireDate ?? this.hireDate,
    imagePath: imagePath ?? this.imagePath,
    address: address ?? this.address,
  );
}