getDiagnoSerachList method
Future
getDiagnoSerachList(
{ - dynamic SearchTXT,
})
Implementation
Future getDiagnoSerachList({SearchTXT}) async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse(
'${medicine_API}api/diagnostic/diagnostic-search?query=${SearchTXT}'),
headers: {'Authorization': currentUserToken},
);
decodedResponse = json.decode(response.body);
DiagnoSerachList = await decodedResponse['data'];
} catch (e) {
ErrorListner(
apiname: 'api/diagnostic/diagnostic-search?query=${SearchTXT}',
responsed: "${decodedResponse}",
request: "",
app_error: '${e}');
}
}