WeUploader typedef

WeUploader = Future<Object?> Function(WeUploadFile file, ValueChanged<double> onProgress)

Uploads file, reporting 0–1 through onProgress. The returned value becomes WeUploadFile.response; throwing marks the file failed.

Implementation

typedef WeUploader =
    Future<Object?> Function(
      WeUploadFile file,
      ValueChanged<double> onProgress,
    );