handleResponseError static method
Implementation
static handleResponseError(int? statusCode) {
switch (statusCode) {
case 401:
Get.snackbar('Error', 'Unauthorized');
break;
case 404:
Get.snackbar('Error', 'Not found');
break;
default:
Get.snackbar('Error', 'Server error');
}
}