httpPostProcess method Null safety
Implementation
Future<http.Response> httpPostProcess(String url, Map<String, dynamic> body)async{
Map<String, dynamic> _nBody = {
'username': username,
...body
};
var _res = await http.post(
Uri.parse(url),
body: _nBody,
headers: {
'Accept': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
'apiKey': apiKey
},
encoding: Encoding.getByName('utf-8')
);
return _res;
}