PolicyListingFunction method
Future
PolicyListingFunction(
)
Implementation
Future PolicyListingFunction() async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse('${SDK_BASE_URL}claim_adminpanel/claim_api/list_policy'),
headers: {"Authorization": SignUpController.currentUserToken});
decodedResponse = json.decode(response.body);
policyList = decodedResponse['policies_listing'];
getPolicyDetails = decodedResponse;
} catch (e) {
errorListner(
apiname: 'claim_adminpanel/claim_api/list_policy',
responsed: "${decodedResponse}",
request: '',
app_error: '${e}');
}
}