TdUploadData class

Constructors

TdUploadData({required String id, required TdUploadType type, required String name, String? url, TdUploadState state = TdUploadState.loading, int percent = 0})
TdUploadData.create({TdUploadType type = TdUploadType.image, required String name, required String? url})
TdUploadData.uploadImage(XFile file)

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
唯一id
getter/setter pair
name String
文件名称
getter/setter pair
percent int
上传进度。0-100
getter/setter pair
rawFile ↔ XFile?
原始文件对象
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state TdUploadState
文件上传状态
getter/setter pair
type TdUploadType
文件类型
getter/setter pair
url String?
文件远程地址
getter/setter pair

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