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<int>> stream, int length, {String? fileName, String? mimeType})
使用文件的字节流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