getMemersDetailsList method
Future
getMemersDetailsList(
{ - dynamic fromScreen,
})
Implementation
Future getMemersDetailsList({fromScreen}) async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse('${SDK_BASE_URL}medicine_api/fetch_patient'),
headers: {'Authorization': SignUpController.currentUserToken},
);
decodedResponse = json.decode(response.body);
MembersList = decodedResponse['data'];
if (fromScreen == 'cart') {
Get.back();
} else {
null;
}
} catch (e) {
errorListner(
apiname: 'medicine_api/fetch_patient',
responsed: "${decodedResponse}",
request: '',
app_error: '${e}');
}
}