EMDownloadCallback constructor

EMDownloadCallback(
  1. {void onSuccess(
    1. String fileId,
    2. String path
    )?,
  2. void onError(
    1. String fileId,
    2. EMError error
    )?,
  3. void onProgress(
    1. String fileId,
    2. int progress
    )?}
)

创建文件下载对象。

Implementation

EMDownloadCallback({
  this.onSuccess,
  this.onError,
  this.onProgress,
});