DataAppointment constructor

DataAppointment({
  1. required int partnerId,
  2. required String patientName,
  3. required String appointmentDateTime,
  4. required String appointmentWeekDay,
  5. required String doctorName,
  6. String? companyName,
  7. String? companyAddress,
  8. String? companyPhone,
  9. required String printedBy,
  10. String language = 'fa',
  11. required String pateintSequence,
  12. required String note,
})

Implementation

DataAppointment({
  required this.partnerId,
  required this.patientName,
  required this.appointmentDateTime,
  required this.appointmentWeekDay,
  required this.doctorName,
  this.companyName,
  this.companyAddress,
  this.companyPhone,
  required this.printedBy,
  this.language = 'fa',
  required this.pateintSequence,
  required this.note,
}) {
  companyName = partners[partnerId]?.getCompanyName(language) ?? 'ShifaQ';
  companyAddress = partners[partnerId]?.getAddress(language) ?? 'Sulaimanya';
  companyPhone =
      partners[partnerId]?.getPhoneNumber(language) ?? '07748133883';
}