DataAppointment constructor
DataAppointment({
- required int partnerId,
- required String patientName,
- required String appointmentDateTime,
- required String appointmentWeekDay,
- required String doctorName,
- String? companyName,
- String? companyAddress,
- String? companyPhone,
- required String printedBy,
- String language = 'fa',
- required String pateintSequence,
- 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';
}