NEAuthService class abstract

用户鉴权服务

Annotations
  • @HawkEntryPoint()

Constructors

NEAuthService()

Properties

hashCode int
The hash code for this object.
no setterinherited
isLoggedIn Future<bool>
查询登录状态
no setter
onAuthEvent Stream<NEAuthEvent>
鉴权状态事件流
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

login(String account, String token) Future<VoidResult>
登录鉴权 account 用户账号 token 用户Token
logout() Future<VoidResult>
退出登录
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