NEAuthService class Null safety

用户鉴权服务

Constructors

NEAuthService()

Properties

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

Methods

login(String account, String token) Future<VoidResult>
登录鉴权 account 用户账号 token 用户Token
logout() Future<VoidResult>
退出登录
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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