setCurrencyFromController method
Future
setCurrencyFromController(
- dynamic paymentID,
- dynamic selectedCurrency,
- dynamic network,
- dynamic toJsonMap,
Implementation
Future setCurrencyFromController(
paymentID, selectedCurrency, network, toJsonMap) async {
try {
isLoading.value = true;
setCurrencyResponse = await Services()
.setCurrency(paymentID, selectedCurrency, network, toJsonMap);
isLoading.value = false;
return setCurrencyResponse;
// ignore: empty_catches
} 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;
}
}