AvatarFirstMustAuthUtiler class abstract

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

authAvatarPath({required String anyImagePath, required dynamic onFailure(), required dynamic onSuccess(AvatarAuthResultServiceInfo avatarAuthServiceInfo)}) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestAvatarAuthResult(String startAuthToken) Future<AvatarAuthResultServiceInfo?>
2、请求认证结果
requestStartAuthAvatar(String avatarUrl) Future<String?>
1、请求开始认证头像,并返回认证的token,用于轮询(因为没有通知)认证的结果
requestUseAuthedImageAsAvatar(AvatarAuthResultServiceInfo authResultModel) Future<String?>
3、使用【前面认证通过的头像】作为头像,并在成功下返回头像(通常有个确认页面,点击确认按钮的时候调用)
toString() String
A string representation of this object.
inherited
uploadImageToAvatarCos(String anyImagePath, {required bool isSelfie}) Future<String?>
需要子类重写的方法 0、上传本地头像文件到cos桶,并返回图片的网络地址

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

initNum int
getter/setter pair
totalNum int
getter/setter pair