copyWith method
复制并修改配置
Implementation
UploadConfig copyWith({Map<String, String>? headers, String? uploadUrl, String? method, int? timeout, String? fileFieldName, Map<String, dynamic>? extraData}) {
return UploadConfig(
headers: headers ?? this.headers,
uploadUrl: uploadUrl ?? this.uploadUrl,
method: method ?? this.method,
timeout: timeout ?? this.timeout,
fileFieldName: fileFieldName ?? this.fileFieldName,
extraData: extraData ?? this.extraData,
);
}