OssHelper class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Properties
- accessKeyId ↔ String
-
getter/setter pair
- accessKeySecret ↔ String
-
getter/setter pair
- bucket ↔ String
-
getter/setter pair
- expiration ↔ String
-
getter/setter pair
- url ↔ String
-
发送请求的url,根据你自己设置的是哪个城市的
getter/setter pair
Static Methods
-
getDate(
) → String - 获取日期
-
getFileType(
String path) → String - 获取文件类型
-
getImageNameByPath(
String filePath) → String? - 根据图片本地路径获取图片名称
-
getPolicyBase64(
String policyText) → dynamic - 获取police的base64
-
getRandom(
int num) → String - 生成固定长度的随机字符串
-
getSignature(
String policyText) → String - 获取签名
-
upload(
{required File file, Function? cancelToken, Function? onSendProgress}) → Future< String> - @params file 要上传的文件对象 @param callback 回调函数用于传cancelToken,方便后期关闭请求 @param onSendProgress 上传的进度事件