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