Preferences class

Constructors

Preferences()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getAppRefreshToken() Future<String>
getAppToken() Future<String>
getAppTokenExpiration() Future<int>
getUserRefreshToken() Future<String>
getUserToken() Future<String>
getUserTokenExpiration() Future<int>
isAppTokenExpired() Future<bool>
isTokenExpired(int millisSinceEpoch) bool
isUserTokenExpired() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resetAppToken() Future<bool>
resetUserToken() Future<bool>
setAppRefreshToken(String token) Future<bool>
setAppToken(String token) Future<bool>
setAppTokenExpiration(int expires) Future<bool>
setUserRefreshToken(String token) Future<bool>
setUserToken(String token) Future<bool>
setUserTokenExpiration(int expires) Future<bool>
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

appRefreshToken String
final
appToken String
final
appTokenExpires String
final
sharedPrefPrefix String
final
userRefreshToken String
final
userToken String
final
userTokenExpires String
final

Static Methods

epochFromExpires(int expires) int