ArcoUploadRequestController class

上传请求控制回调(对应用户 ArcoUpload.customRequest 的进度/成功/失败)。

三个回调为可直接调用的函数字段:如 controller.onProgress(50)。

Constructors

ArcoUploadRequestController({required void onProgress(double percent), required void onSuccess([Object? response]), required void onError([Object? response])})
创建控制器。

Properties

hashCode → int
The hash code for this object.
no setterinherited
onError → void Function([Object? response])
上报失败(可选错误对象)。
final
onProgress → void Function(double percent)
上报进度(0-100)。
final
onSuccess → void Function([Object? response])
上报成功(可选响应对象)。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited