lockCurrencyService method
Implementation
Future<Map> lockCurrencyService() async {
try {
isLoading.value = true;
lockCurrencyresponse =
await Services().lockCurrency(_serviceController.paymentID);
isLoading.value = false;
return lockCurrencyresponse;
} on Exception catch (e, s) {
if (e is SocketException) {
debugPrint("Get payment details controller error $e, $s");
Get.snackbar('Internet Error', "Couldn't get Set Currency");
} else {
debugPrint("Get payment details controller error $e, $s");
Get.snackbar('Error', "Couldn't get set currency");
}
isLoading.value = false;
rethrow;
}
}