Null check operator removed from pharmacy_intervention_service.dart.

update_3.16.0_CR5439_Pharmacy_Intervention
Syed Taha Alam 6 months ago
parent 34c08e6707
commit 6f3e4d189f

@ -78,7 +78,6 @@ class PharmacyInterventionService extends BaseService {
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
DrAppToastMsg.showErrorToast(error); DrAppToastMsg.showErrorToast(error);
super.error = super.error ?? "" + "\n" + error;
}, body: {}); }, body: {});
return success; return success;
@ -97,8 +96,6 @@ class PharmacyInterventionService extends BaseService {
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
DrAppToastMsg.showErrorToast(error); DrAppToastMsg.showErrorToast(error);
super.error = super.error! + "\n" + error;
}, body: {}); }, body: {});
return success; return success;
} }
@ -125,9 +122,6 @@ class PharmacyInterventionService extends BaseService {
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
DrAppToastMsg.showErrorToast(error); DrAppToastMsg.showErrorToast(error);
super.error = super.error! + "\n" + error;
}, body: request); }, body: request);
return result; return result;
} }
@ -139,11 +133,10 @@ class PharmacyInterventionService extends BaseService {
var result = false; var result = false;
await baseAppClient.post(UPDATE_INFECTIOUS_STATUS, await baseAppClient.post(UPDATE_INFECTIOUS_STATUS,
onSuccess: (dynamic response, int statusCode) { onSuccess: (dynamic response, int statusCode) {
result = response['IsAccepted']; result = response['IsAccepted'] ?? false;
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
DrAppToastMsg.showErrorToast(error); DrAppToastMsg.showErrorToast(error);
super.error = super.error! + "\n" + error;
}, body: request); }, body: request);
return result; return result;
} }
@ -158,8 +151,6 @@ class PharmacyInterventionService extends BaseService {
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
DrAppToastMsg.showErrorToast(error); DrAppToastMsg.showErrorToast(error);
super.error = super.error! + "\n" + error;
}, body: {}); }, body: {});
return station; return station;
} }

Loading…
Cancel
Save