Send function

Future<Response> Send(
  1. String api, {
  2. String? postdata,
  3. Map<String, String>? header,
})

Send: 發送一般的API

Implementation

Future<http.Response> Send(String api,{String ?postdata, Map<String,String> ?header})  {
  var url = Uri.parse(api);
  return http.post(
      url,
      body: postdata,
      headers: header
  );
}