httpGetProcess method Null safety

Future<Response> httpGetProcess(
  1. String url,
  2. Map<String, dynamic> body
)

Implementation

Future<http.Response> httpGetProcess(String url, Map<String, dynamic> body)async{

  Map<String, dynamic> _nBody = {
    'username': username,
    ...body
  };
  print(encodeUrl(url, _nBody));

  var _res = await http.get(
    Uri.parse(encodeUrl(url, _nBody)),
    headers: {
      'Accept': 'application/json',
      'apiKey': apiKey
    },
  );

  return _res;

}