copyWith method

DepartmentCompanion copyWith({
  1. Value<int>? id,
  2. Value<String>? code,
  3. Value<String>? name,
  4. Value<int>? companyId,
  5. Value<int?>? managerId,
  6. Value<String?>? imagePath,
  7. Value<String?>? description,
})

Implementation

DepartmentCompanion copyWith({
  Value<int>? id,
  Value<String>? code,
  Value<String>? name,
  Value<int>? companyId,
  Value<int?>? managerId,
  Value<String?>? imagePath,
  Value<String?>? description,
}) {
  return DepartmentCompanion(
    id: id ?? this.id,
    code: code ?? this.code,
    name: name ?? this.name,
    companyId: companyId ?? this.companyId,
    managerId: managerId ?? this.managerId,
    imagePath: imagePath ?? this.imagePath,
    description: description ?? this.description,
  );
}