|
|
|
|
@ -617,7 +617,12 @@ class MyAppointmentsViewModel extends ChangeNotifier {
|
|
|
|
|
patientType: patientType);
|
|
|
|
|
|
|
|
|
|
result.fold(
|
|
|
|
|
(failure) async => await errorHandlerService.handleError(failure: failure),
|
|
|
|
|
// (failure) async => await errorHandlerService.handleError(failure: failure),
|
|
|
|
|
(failure) async {
|
|
|
|
|
if (onError != null) {
|
|
|
|
|
onError(failure.message);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
(apiResponse) {
|
|
|
|
|
if (apiResponse.messageStatus == 2) {
|
|
|
|
|
// dialogService.showErrorDialog(message: apiResponse.errorMessage!, onOkPressed: () {});
|
|
|
|
|
|