postFile method

dynamic postFile(
  1. String url,
  2. Map<String, dynamic> params,
  3. String filePath,
  4. Uint8List fileBytes,
  5. Stream stream, {
  6. required Function success,
  7. required Function error,
  8. required Function complete,
})

上传文件 web

Implementation

postFile(String url,Map<String, dynamic> params,String filePath,Uint8List fileBytes,Stream stream,
    {required Function success, required Function error, required Function complete}) async {
  _postFile(url, params,filePath,fileBytes ,stream,success, error, complete);
}