UploadConfig class
Constructors
Properties
-
extraData
→ Map<
String, dynamic> ? -
额外的表单数据
final
- fileFieldName → String
-
文件字段名,默认为'file'
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
请求头信息
final
- isValid → bool
-
验证配置是否有效
有效条件:提供了uploadUrl
no setter
- method → String
-
请求方法,默认为POST
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → int
-
请求超时时间(秒),默认30秒
final
- uploadUrl → String?
-
上传接口路径
final
Methods
-
copyWith(
{Map< String, String> ? headers, String? uploadUrl, String? method, int? timeout, String? fileFieldName, Map<String, dynamic> ? extraData}) → UploadConfig - 复制并修改配置
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - 转换为Map 注意:customUpload函数无法序列化,不包含在Map中
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited