SpUtil class

Constructors

SpUtil.new()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
prefs ↔ SharedPreferences?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBool(String key) bool?
getJSON(String key) → dynamic
getString(String key) String?
init() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) Future<bool>
setBool(String key, bool val) Future<bool>
setJSON(String key, dynamic jsonVal) Future<bool>
setString(String key, String val) Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

SP_KEY_ACCESS_TOKEN → const String
用户Token
SP_KEY_IMAGE_CAPTCHA_TOKEN → const String
获取图形验证码返回的Token
SP_KEY_PHONE_CAPTCHA_TOKEN → const String
获取手机验证码返回的Token
SP_KEY_RECOVERY_PASSWORD_CAPTCHA_TOKEN → const String
用户找回密码发送验证码时的token
SP_KEY_REFRESH_TOKEN → const String
用户RefreshToken