UploadFileInfo class
上传文件时的包装格式
用于描述要上传的文件信息
Constructors
- UploadFileInfo(String filePath, {String? fileName, String? mimeType})
-
使用
filePath
创建上传文件factory -
UploadFileInfo.bytes(List<
int> bytes, {String? fileName, String? mimeType}) -
使用文件的字节流
bytes
创建上传文件factory -
UploadFileInfo.stream(Stream<
List< stream, int length, {String? fileName, String? mimeType})int> > -
使用文件的字节流
stream
创建上传文件factory
Properties
- fileName → String?
-
文件名
final
- filePath → String?
-
文件路径(不支持web)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int?
-
stream中的文件字节流长度
final
- mimeType → String?
-
要上传的文件mime类型
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
List< ?int> > -
文件字节流
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited